PKGBUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Jan "heftig" Steffens <jan.steffens@gmail.com>
  3. _pkgbasename=v4l-utils
  4. pkgname=lib32-$_pkgbasename
  5. pkgver=1.16.3
  6. pkgrel=1
  7. pkgrel+=.nonsystemd1
  8. pkgdesc="Userspace tools and conversion library for Video 4 Linux (32-bit)"
  9. arch=('x86_64')
  10. url="https://linuxtv.org/"
  11. provides=("lib32-libv4l=$pkgver")
  12. replaces=('lib32-libv4l')
  13. conflicts=('lib32-libv4l')
  14. license=('LGPL')
  15. depends=($_pkgbasename 'lib32-gcc-libs' 'lib32-libjpeg-turbo' 'lib32-eudev')
  16. source=(https://linuxtv.org/downloads/v4l-utils/${_pkgbasename}-${pkgver}.tar.bz2
  17. https://linuxtv.org/downloads/v4l-utils/${_pkgbasename}-${pkgver}.tar.bz2.asc)
  18. validpgpkeys=('05D0169C26E41593418129DF199A64FADFB500FF') # Gregor Jasny <gjasny@googlemail.com>
  19. sha512sums=('404672d18d94861c6957ea3a15a6a48f238d3859940810952a5a8cc33b57f1a360d1a19af28405c01b073c0ece90c5995a71dbe6544b30bdb8eace7daeb4bc0b'
  20. 'SKIP')
  21. build() {
  22. cd "${srcdir}/${_pkgbasename}-${pkgver}"
  23. export CC="gcc -m32"
  24. export CXX="g++ -m32"
  25. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  26. ./configure --prefix=/usr --libdir=/usr/lib32 --sysconfdir=/etc
  27. make -C lib
  28. }
  29. package() {
  30. cd "${srcdir}/${_pkgbasename}-${pkgver}"
  31. MAKEFLAGS="-j1" make -C lib install DESTDIR="${pkgdir}/"
  32. rm -rf "${pkgdir}"/{usr/{include,share,bin,sbin},etc,lib}
  33. }