PKGBUILD 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (artix): Christian Hesse <mail@eworm.de>
  3. # Maintainer (artix): Dave Reisner <dreisner@archlinux.org>
  4. # Maintainer (artix): Tom Gundersen <teg@jklm.no>
  5. pkgname=lib32-udev
  6. _pkgbasename=systemd
  7. _tag='9c8279cdd5d0bc256b8cc0ced2312e27e069a214' # git rev-parse v${_tag_name}
  8. _tag_name=250
  9. pkgver="${_tag_name/-/}"
  10. pkgrel=1
  11. pkgdesc='Userspace device file manager (32-bit)'
  12. arch=('x86_64')
  13. url='https://www.github.com/systemd/systemd'
  14. license=('GPL2' 'LGPL2.1')
  15. provides=("lib32-udev=${pkgver}" 'lib32-eudev')
  16. replaces=('lib32-eudev')
  17. depends=('lib32-gcc-libs' 'udev')
  18. makedepends=('git' 'gperf' 'intltool' 'lib32-acl' 'lib32-libcap'
  19. 'lib32-glib2' 'lib32-gnutls' 'lib32-libelf'
  20. 'libxslt' 'meson' 'python-jinja' 'python-lxml')
  21. options=('strip')
  22. validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
  23. 'A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E' # Luca Boccassi <luca.boccassi@gmail.com>
  24. '5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
  25. source=("git+https://github.com/systemd/systemd-stable#tag=${_tag}?signed"
  26. "git+https://github.com/systemd/systemd#tag=v${_tag_name%.*}?signed")
  27. sha512sums=('SKIP'
  28. 'SKIP')
  29. _backports=(
  30. )
  31. _reverts=(
  32. )
  33. prepare() {
  34. cd "$_pkgbasename-stable"
  35. # add upstream repository for cherry-picking
  36. git remote add -f upstream ../systemd
  37. local _c
  38. for _c in "${_backports[@]}"; do
  39. git cherry-pick -n "${_c}"
  40. done
  41. for _c in "${_reverts[@]}"; do
  42. git revert -n "${_c}"
  43. done
  44. }
  45. _get_libudev() {
  46. echo "$(readlink build/libudev.so.1)"
  47. }
  48. build() {
  49. export CC="gcc -m32"
  50. export CXX="g++ -m32"
  51. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  52. local _meson_options=(
  53. --libexecdir /usr/lib32
  54. --libdir /usr/lib32
  55. # internal version comparison is incompatible with pacman:
  56. # 249~rc1 < 249 < 249.1 < 249rc
  57. -Dversion-tag="${_tag_name/-/\~}-${pkgrel}-parabola"
  58. -Dmode=release
  59. # features
  60. -Daudit=false
  61. -Dblkid=false
  62. -Dgnu-efi=false
  63. -Dima=false
  64. -Dkmod=false
  65. -Dlibcryptsetup=false
  66. -Dlibidn2=false
  67. -Dlibiptc=false
  68. -Dlz4=false
  69. -Dmicrohttpd=false
  70. -Dpam=false
  71. -Dseccomp=false
  72. -Dlink-udev-shared=false
  73. # components
  74. -Dutmp=false
  75. -Dhibernate=false
  76. -Dldconfig=false
  77. -Dresolve=false
  78. -Defi=false
  79. -Dtpm=false
  80. -Denvironment-d=false
  81. -Dbinfmt=false
  82. -Drepart=false
  83. -Dcoredump=false
  84. -Dpstore=false
  85. -Doomd=false
  86. -Dlogind=false
  87. -Dhostnamed=false
  88. -Dlocaled=false
  89. -Dmachined=false
  90. -Dportabled=false
  91. -Dsysext=false
  92. -Duserdb=false
  93. -Dhomed=false
  94. -Dnetworkd=false
  95. -Dtimedated=false
  96. -Dtimesyncd=false
  97. -Dremote=false
  98. -Dcreate-log-dirs=false
  99. -Dnss-myhostname=false
  100. -Dnss-mymachines=false
  101. -Dnss-resolve=false
  102. -Dnss-systemd=false
  103. -Dfirstboot=false
  104. -Drandomseed=false
  105. -Dbacklight=false
  106. -Dvconsole=false
  107. -Dquotacheck=false
  108. -Dsysusers=false
  109. -Dtmpfiles=false
  110. -Dimportd=false
  111. -Dhwdb=false
  112. -Drfkill=false
  113. -Dxdg-autostart=false
  114. -Dman=false
  115. -Dhtml=false
  116. -Dtranslations=false
  117. -Ddbuspolicydir=/usr/share/dbus-1/system.d
  118. -Ddefault-hierarchy=unified
  119. -Ddefault-kill-user-processes=false
  120. -Ddefault-locale=C
  121. -Dfallback-hostname='parabola'
  122. -Dnologin-path=/usr/bin/nologin
  123. -Dntp-servers=
  124. -Ddns-servers=
  125. -Drpmmacrosdir=no
  126. -Dsysvinit-path=
  127. -Dsysvrcnd-path=
  128. )
  129. arch-meson "$_pkgbasename-stable" build "${_meson_options[@]}"
  130. local _udev=()
  131. _udev+=(
  132. $(_get_libudev)
  133. src/libudev/libudev.pc
  134. )
  135. ninja -C build "${_udev[@]}"
  136. }
  137. package() {
  138. install -d "${pkgdir}"/usr/lib32/pkgconfig
  139. mv -v build/{libudev.so{,.1},$(_get_libudev)} "${pkgdir}"/usr/lib32/
  140. mv -v build/src/libudev/libudev.pc "${pkgdir}"/usr/lib32/pkgconfig/
  141. }