PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (arch): Maxime Gauduin <alucryd@archlinux.org>
  3. # Contributor: FadeMind <fademind@gmail.com>
  4. # Contributor: Evangelos Foutras <evangelos@foutrelis.com>
  5. pkgname=lib32-libgudev
  6. pkgver=233
  7. pkgrel=1
  8. pkgrel+=.nonsystemd1
  9. pkgdesc='GObject bindings for libudev'
  10. arch=(x86_64)
  11. url=https://wiki.gnome.org/Projects/libgudev
  12. license=(LGPL2.1)
  13. depends=(
  14. lib32-glib2
  15. lib32-eudev
  16. libgudev
  17. )
  18. makedepends=(
  19. git
  20. gtk-doc
  21. python
  22. )
  23. provides=(libgudev-1.0.so)
  24. source=(git+https://gitlab.gnome.org/GNOME/libgudev.git#tag=${pkgver})
  25. sha256sums=(SKIP)
  26. prepare() {
  27. cd libgudev
  28. NOCONFIGURE=1 ./autogen.sh
  29. }
  30. build() {
  31. cd libgudev
  32. export CC='gcc -m32'
  33. export CXX='g++ -m32'
  34. export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
  35. ./configure \
  36. --prefix=/usr \
  37. --libdir=/usr/lib32 \
  38. --localstatedir=/var \
  39. --sysconfdir=/etc \
  40. --disable-gtk-doc \
  41. --disable-umockdev
  42. sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  43. make
  44. }
  45. package() {
  46. make DESTDIR="${pkgdir}" -C libgudev install
  47. rm -rf ${pkgdir}/usr/{include,share}
  48. }
  49. # vim: ts=2 sw=2 et: