PKGBUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (artix): artoo <artoo@artixlinux.org>
  3. _pkgname=elogind
  4. pkgname=lib32-elogind
  5. pkgver=246.10
  6. pkgrel=1
  7. pkgdesc="The systemd project's logind, extracted to a standalone package (32-bit)"
  8. arch=('x86_64')
  9. url="https://github.com/elogind/elogind"
  10. license=('GPL' 'LGPL2.1')
  11. provides=('lib32-systemd')
  12. depends=('lib32-gcc-libs' 'lib32-acl' 'lib32-libcap' 'lib32-libgcrypt' 'lib32-libxcrypt'
  13. 'lib32-eudev' 'elogind')
  14. makedepends=('git' 'gperf' 'intltool' 'lib32-bzip2'
  15. 'lib32-curl' 'lib32-dbus' 'lib32-gcc-libs' 'lib32-glib2'
  16. 'lib32-gnutls' 'lib32-libelf' 'lib32-libidn2' 'lib32-pcre2'
  17. 'libxslt' 'meson')
  18. conflicts=('lib32-systemd')
  19. options=('!libtool')
  20. source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/elogind/elogind/archive/v${pkgver}.tar.gz")
  21. sha256sums=('c490dc158c8f5bca8d00ecfcc7ad5af24d1c7b9e59990a0b3b1323996221a922')
  22. prepare() {
  23. cd ${_pkgname}-${pkgver}
  24. }
  25. build() {
  26. export CC="gcc -m32"
  27. export CXX="g++ -m32"
  28. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  29. local meson_options=(
  30. --libexecdir /usr/lib32
  31. --libdir /usr/lib32
  32. -Daudit=false
  33. -Ddbuspolicydir=/usr/share/dbus-1/system.d
  34. -Ddocdir=/usr/share/doc/elogind
  35. -Ddefault-hierarchy=hybrid
  36. -Dlibcryptsetup=false
  37. -Ddefault-kill-user-processes=false
  38. )
  39. arch-meson "${_pkgname}-${pkgver}" build "${meson_options[@]}"
  40. ninja -C build
  41. }
  42. check(){
  43. meson test -C build --print-errorlogs
  44. }
  45. package() {
  46. DESTDIR="$pkgdir" ninja -C build install
  47. ln -sfv libelogind.pc "${pkgdir}"/usr/lib32/pkgconfig/libsystemd.pc
  48. rm -rf "${pkgdir}"/{etc,var}
  49. rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
  50. }