PKGBUILD 1023 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer (arch): Levente Polyak <anthraxx[at]archlinux[dot]org>
  2. # Maintainer: David P. <megver83@parabola.nu>
  3. _basepkgname=libudev0-shim
  4. pkgname=lib32-${_basepkgname}
  5. pkgver=1
  6. pkgrel=4
  7. pkgrel+=.nonsystemd1
  8. pkgdesc='libudev.so.0 compatibility library for systems with newer udev versions (32 bit)'
  9. url='https://github.com/archlinux/libudev0-shim'
  10. arch=('x86_64')
  11. license=('GPL')
  12. provides=('lib32-libudev0')
  13. conflicts=('lib32-libudev0')
  14. depends=('lib32-eudev' 'libudev0-shim')
  15. makedepends=('eudev')
  16. source=(${_basepkgname}.tar.gz::https://github.com/archlinux/libudev0-shim/archive/v${pkgver}.tar.gz)
  17. sha512sums=('794810b20be6391cb6af53c2c49705f8bd884dd6eb5d1fd5b659481a01490205cc60e0f1904c020fb0e59e984583762ba6775f977a78b95a40ba82eb93965387')
  18. build() {
  19. cd ${_basepkgname}-${pkgver}
  20. unset LDFLAGS
  21. make CC="gcc -m32"
  22. }
  23. package() {
  24. cd ${_basepkgname}-${pkgver}
  25. install -Dm 755 libudev.so.0.0.9999 -t "${pkgdir}/usr/lib32"
  26. ln -s libudev.so.0.0.9999 "${pkgdir}/usr/lib32/libudev.so.0"
  27. }
  28. # vim: ts=2 sw=2 et: