PKGBUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Maintainer (Artix): Chris Cromer <cromer@artixlinux.org>
  2. # Maintainer: David P. <megver83@parabola.nu>
  3. _udevver=220
  4. _pkgname=eudev
  5. pkgname=lib32-eudev
  6. pkgdesc="The userspace dev tools (udev) forked by Gentoo (32-bit)"
  7. pkgver=3.2.5
  8. pkgrel=1
  9. arch=('x86_64')
  10. url="http://www.gentoo.org/proj/en/eudev/"
  11. license=('GPL')
  12. depends=('lib32-glib2' 'lib32-glibc')
  13. makedepends=('lib32-gcc-libs' 'lib32-util-linux' 'gobject-introspection' 'gperf' 'python2' 'gtk-doc')
  14. provides=("lib32-udev=${_udevver}")
  15. conflicts=("lib32-systemd")
  16. options=(!makeflags !libtool)
  17. source=("$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz")
  18. sha256sums=('870920011285b919fca5c60eaa5670312eeffe3883dd8cf564cd1179fc639336')
  19. build() {
  20. export CC="gcc -m32"
  21. export CXX="g++ -m32"
  22. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  23. cd "${srcdir}/${_pkgname}-${pkgver}"
  24. ./autogen.sh
  25. ./configure \
  26. --prefix=/usr \
  27. --with-rootprefix=/usr \
  28. --sysconfdir=/etc \
  29. --libdir=/usr/lib32 \
  30. --sbindir=/usr/bin \
  31. --enable-introspection \
  32. --disable-manpages \
  33. --disable-kmod
  34. make
  35. }
  36. package() {
  37. cd "${srcdir}/${_pkgname}-${pkgver}"
  38. make DESTDIR="${pkgdir}" -C src/libudev install
  39. make DESTDIR="${pkgdir}" -C src/shared uninstall
  40. rm -rf ${pkgdir}/usr/include
  41. }