PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # $Id: PKGBUILD 212301 2014-05-12 12:04:49Z lcarlier $
  2. # Maintainer: Laurent Carlier <lordheavym@gmail.com>
  3. # Contributor: Fly-away <flyaaway@gmail.com>
  4. _pkgname=libomxil-bellagio
  5. pkgname=lib32-$_pkgname
  6. pkgver=0.9.3
  7. pkgrel=1
  8. pkgdesc="An free implementation of the OpenMAX Integration Layer API"
  9. arch=('x86_64')
  10. url="http://omxil.sourceforge.net"
  11. license=('LGPL')
  12. depends=("$_pkgname" 'lib32-glibc')
  13. source=("http://downloads.sourceforge.net/project/omxil/omxil/Bellagio%200.9.3/${_pkgname}-${pkgver}.tar.gz"
  14. fedora-fixes.patch)
  15. md5sums=('a1de827fdb75c02c84e55f740ca27cb8'
  16. 'c34f9facf0cf26171c81f2fc3d562ec6')
  17. prepare() {
  18. cd ${srcdir}/${_pkgname}-$pkgver
  19. # Fixes from fedora repo
  20. patch -Np1 -i ../fedora-fixes.patch
  21. autoreconf -fiv
  22. }
  23. build() {
  24. export CC="gcc -m32"
  25. export CXX="g++ -m32"
  26. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  27. cd ${srcdir}/${_pkgname}-${pkgver}
  28. ./configure --prefix=/usr --disable-static --disable-doc --libdir=/usr/lib32
  29. make
  30. }
  31. package() {
  32. cd ${srcdir}/${_pkgname}-${pkgver}
  33. make DESTDIR="${pkgdir}" install
  34. # remove conflicting and unused files
  35. rm -vr "${pkgdir}"/usr/{bin,include,share}
  36. }