PKGBUILD 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Maintainer: Tom Gundersen <teg@jklm.no>
  2. # Maintainer: Dave Reisner <dreisner@archlinux.org>
  3. # Contributor: judd <jvinet@zeroflux.org>
  4. _pkgbase=util-linux
  5. pkgname=libutil-linux-static
  6. _pkgmajor=2.33
  7. pkgver=${_pkgmajor}.1
  8. pkgrel=2
  9. pkgrel+=.static1
  10. pkgdesc="Miscellaneous system utilities for Linux"
  11. url="https://www.kernel.org/pub/linux/utils/util-linux/"
  12. arch=('x86_64')
  13. arch+=('i686' 'armv7h')
  14. makedepends=('systemd' 'python' 'libcap-ng')
  15. license=('GPL2')
  16. options=('strip' 'debug')
  17. validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284') # Karel Zak
  18. source=("https://www.kernel.org/pub/linux/utils/util-linux/v$_pkgmajor/$_pkgbase-$pkgver.tar."{xz,sign}
  19. pam-{login,common,runuser,su}
  20. 'util-linux.sysusers'
  21. '60-rfkill.rules'
  22. 'rfkill-unblock_.service'
  23. 'rfkill-block_.service')
  24. sha256sums=('c14bd9f3b6e1792b90db87696e87ec643f9d63efa0a424f092a5a6b2f2dbef21'
  25. 'SKIP'
  26. '993a3096c2b113e6800f2abbd5d4233ebf1a97eef423990d3187d665d3490b92'
  27. 'fc6807842f92e9d3f792d6b64a0d5aad87995a279153ab228b1b2a64d9f32f20'
  28. '95b7cdc4cba17494d7b87f37f8d0937ec54c55de0e3ce9d9ab05ad5cc76bf935'
  29. '51eac9c2a2f51ad3982bba35de9aac5510f1eeff432d2d63c6362e45d620afc0'
  30. '10b0505351263a099163c0d928132706e501dd0a008dac2835b052167b14abe3'
  31. '7423aaaa09fee7f47baa83df9ea6fef525ff9aec395c8cbd9fe848ceb2643f37'
  32. '8ccec10a22523f6b9d55e0d6cbf91905a39881446710aa083e935e8073323376'
  33. 'a22e0a037e702170c7d88460cc9c9c2ab1d3e5c54a6985cd4a164ea7beff1b36')
  34. build() {
  35. cd "$_pkgbase-$pkgver"
  36. ./configure \
  37. --prefix=/usr \
  38. --libdir=/usr/lib \
  39. --bindir=/usr/bin \
  40. --localstatedir=/var \
  41. --enable-fs-paths-default=/usr/bin:/usr/local/bin \
  42. --enable-raw \
  43. --enable-vipw \
  44. --enable-newgrp \
  45. --enable-chfn-chsh \
  46. --enable-write \
  47. --enable-mesg \
  48. --disable-shared --enable-static \
  49. --with-python=3
  50. make
  51. }
  52. package() {
  53. pkgdesc="util-linux runtime libraries"
  54. pkgdesc+=" (static libraries)"
  55. provides=()
  56. depends=("libutil-linux=$pkgver")
  57. options=('staticlibs')
  58. make -C "$_pkgbase-$pkgver" DESTDIR="$pkgdir" install-usrlib_execLTLIBRARIES
  59. }