PKGBUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (arch): Maxime Gauduin <alucryd@archlinux.org>
  3. # Contributor: Jan de Groot <jgc@archlinux.org>
  4. # Contributor: jtts <jussaar@mbnet.fi>
  5. # Contributor: GordonGR <gordongr@freemail.gr>
  6. pkgname=lib32-polkit
  7. pkgver=0.116
  8. pkgrel=1
  9. pkgrel+=.nonsystemd1
  10. pkgdesc='Application development toolkit for controlling system-wide privileges'
  11. arch=(x86_64)
  12. license=(LGPL)
  13. url=https://www.freedesktop.org/wiki/Software/polkit/
  14. depends=(
  15. lib32-expat
  16. lib32-glib2
  17. lib32-pam
  18. polkit
  19. )
  20. makedepends=(
  21. autoconf-archive
  22. git
  23. gobject-introspection
  24. gtk-doc
  25. intltool
  26. )
  27. _commit='941e9329f8d3d43ace8335d206365b212824e686' # tags/0.116^0
  28. source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
  29. elogind-configure-fix.patch)
  30. sha256sums=('SKIP'
  31. 'd90b2a95aa3e9e1ebf9369c038c144e04900e095c5405bc4ba4901c31bf3f59b')
  32. prepare() {
  33. cd polkit
  34. patch -Np 1 -i ${srcdir}/elogind-configure-fix.patch
  35. NOCONFIGURE=1 ./autogen.sh
  36. }
  37. build() {
  38. cd polkit
  39. export CC='gcc -m32'
  40. export CXX='g++ -m32'
  41. export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
  42. ./configure \
  43. --prefix=/usr \
  44. --sysconfdir=/etc \
  45. --libdir=/usr/lib32 \
  46. --localstatedir=/var \
  47. --libexecdir=/usr/lib32 \
  48. --disable-gtk-doc \
  49. --disable-static \
  50. --enable-libsystemd-login='no' \
  51. --enable-libelogind='no' \
  52. --with-systemdsystemunitdir='no' \
  53. --with-os-type='redhat'
  54. # sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  55. make -C src/polkit polkitenumtypes.h
  56. make -C src/polkit libpolkit-gobject-1.la
  57. make -C src/polkitagent polkitagentenumtypes.h marshal.stamp
  58. make -C src/polkitagent libpolkit-agent-1.la
  59. }
  60. package() {
  61. cd polkit
  62. make -C src/polkit DESTDIR="${pkgdir}" lib_LTLIBRARIES=libpolkit-gobject-1.la install-libLTLIBRARIES
  63. make -C src/polkitagent DESTDIR="${pkgdir}" lib_LTLIBRARIES=libpolkit-agent-1.la install-libLTLIBRARIES
  64. make -C data DESTDIR="${pkgdir}" install-pkgconfigDATA
  65. }
  66. # vim: ts=2 sw=2 et: