Advertisement
Guest User

PKGBUILD

a guest
May 3rd, 2021
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 3.11 KB | None | 0 0
  1. # $Id$
  2. # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
  3. # Contributor: Roberto Carvajal <roberto@archlinux.org>
  4. # Mantainer: Lorenzo Ferrillo <lorenzofer at live dot com>
  5. _basename=mjpegtools
  6. pkgname=lib32-${_basename}
  7. pkgver=2.1.0
  8. pkgrel=5
  9. pkgdesc="Set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video. 32bit libraries"
  10. arch=('x86_64')
  11. license=('GPL')
  12. url="http://mjpeg.sourceforge.net/"
  13. depends=('mjpegtools' 'lib32-libjpeg' 'lib32-libpng' 'lib32-sdl' 'gcc-libs-multilib' 'lib32-libdv')
  14. makedepends=('lib32-gtk2' 'lib32-v4l-utils')
  15. source=(http://downloads.sourceforge.net/sourceforge/mjpeg/${_basename}-${pkgver}.tar.gz    v4l.patch    avoid_fno_pic.patch   package.patch)
  16. md5sums=('57bf5dd78976ca9bac972a6511b236f3' 'SKIP' 'SKIP')
  17.  
  18. prepare() {
  19.   cd ${_basename}-${pkgver}
  20.   patch --forward --strip=1 --input="${srcdir}/package.patch"
  21.   sed -i -e '/ARCHFLAGS=/s:=.*:=:' configure
  22. }
  23.  
  24. build() {
  25.   cd ${_basename}-${pkgver}
  26.   export CC="gcc -m32 "
  27.   export CXX="g++ -m32 "
  28.   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  29.   patch -Np1  -i "${srcdir}/avoid_fno_pic.patch"
  30.   #patch -Np0  -i "${srcdir}/v4l.patch" #video4linux is failing compilation
  31.   autoreconf  -f -i
  32.   ./configure --prefix=/usr --libdir=/usr/lib32 --enable-largefile   --without-libquicktime
  33. #  make clean
  34.   make
  35. }
  36.  
  37. package() {
  38.   cd ${_basename}-${pkgver}
  39.   make DESTDIR="${pkgdir}" install
  40.   rm ${pkgdir}/usr/include ${pkgdir}/usr/share ${pkgdir}/usr/bin -Rf
  41.   }
  42.  
  43. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  44.          '2697adb8b28e458761566e6a3b31fc8b'
  45.          'c828133801331a04236b7e277bc4ca7a'
  46.          '787539b49d11fdfd6fbd63da85049e9f')
  47. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  48.          '2697adb8b28e458761566e6a3b31fc8b'
  49.          'c828133801331a04236b7e277bc4ca7a'
  50.          'ee0816cd7623ce4574e16197dab22e78')
  51. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  52.          '2697adb8b28e458761566e6a3b31fc8b'
  53.          'c828133801331a04236b7e277bc4ca7a'
  54.          'bb6a4c6b74d56b77c9e22d7cc6a30534')
  55. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  56.          '2697adb8b28e458761566e6a3b31fc8b'
  57.          'c828133801331a04236b7e277bc4ca7a'
  58.          'c50bf6a7df776db849950dcd9358abe2')
  59. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  60.          '2697adb8b28e458761566e6a3b31fc8b'
  61.          'c828133801331a04236b7e277bc4ca7a'
  62.          'd1d3cecf7d8865e085eaa0158c23de63')
  63. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  64.          '2697adb8b28e458761566e6a3b31fc8b'
  65.          'c828133801331a04236b7e277bc4ca7a'
  66.          '523e5e4e3a7e8b1cd815feeae4832c1a')
  67. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  68.          '2697adb8b28e458761566e6a3b31fc8b'
  69.          'c828133801331a04236b7e277bc4ca7a'
  70.          '8cb74c3cd2b55136a0704e6b3d316fca')
  71. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  72.          '2697adb8b28e458761566e6a3b31fc8b'
  73.          'c828133801331a04236b7e277bc4ca7a'
  74.          '1cd89b9f3c08956ab5802e955d3ed290')
  75. md5sums=('57bf5dd78976ca9bac972a6511b236f3'
  76.          '2697adb8b28e458761566e6a3b31fc8b'
  77.          'c828133801331a04236b7e277bc4ca7a'
  78.          'f30990150bf1088c375f495f59dece11')
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement