PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
  3. pkgname=polkit
  4. pkgver=0.118
  5. pkgrel=1
  6. pkgrel+=.nonsystemd1
  7. pkgdesc="Application development toolkit for controlling system-wide privileges"
  8. arch=(x86_64 i686 armv7h)
  9. license=(LGPL)
  10. url="https://www.freedesktop.org/wiki/Software/polkit/"
  11. depends=(glib2 pam expat elogind js78)
  12. makedepends=(intltool gtk-doc gobject-introspection git autoconf-archive)
  13. backup=(etc/pam.d/polkit-1)
  14. provides=(polkit-elogind)
  15. replaces=(polkit-elogind polkit-consolekit)
  16. _commit=ff4c2144f0fb1325275887d9e254117fcd8a1b52 # git tag 0.118
  17. source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
  18. '99-parabola.rules'
  19. 'elogind-configure-fix.patch')
  20. sha256sums=('SKIP'
  21. 'd28d6ecaf7682860e2b3768bb266bd94313546b7cd0ef3c2eace7b1576c47adb'
  22. 'd90b2a95aa3e9e1ebf9369c038c144e04900e095c5405bc4ba4901c31bf3f59b')
  23. pkgver() {
  24. cd $pkgname
  25. git describe --tags | sed 's/-/+/g'
  26. }
  27. prepare() {
  28. cd $pkgname
  29. patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch
  30. NOCONFIGURE=1 ./autogen.sh
  31. }
  32. build() {
  33. cd $pkgname
  34. ./configure --prefix=/usr --sysconfdir=/etc \
  35. --localstatedir=/var --libexecdir=/usr/lib \
  36. --enable-libsystemd-login=no --disable-static \
  37. --enable-libelogind=yes --with-systemdsystemunitdir=no \
  38. --enable-gtk-doc --with-os-type=redhat
  39. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  40. make
  41. }
  42. check() {
  43. cd $pkgname
  44. make -k check || :
  45. }
  46. package() {
  47. cd $pkgname
  48. make DESTDIR="$pkgdir" install \
  49. dbusconfdir=/usr/share/dbus-1/system.d \
  50. rulesdir=/usr/share/polkit-1/rules.d
  51. install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
  52. install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <<END
  53. u polkitd 102 "PolicyKit daemon"
  54. m polkitd proc
  55. END
  56. install -m0644 "${srcdir}"/99-parabola.rules "${pkgdir}"/etc/polkit-1/rules.d
  57. }
  58. # vim: ts=2 sw=2 et: