SHARE
TWEET

turbojpeg_1.2.1_PKGBUILD

a guest Jul 8th, 2012 60 Never
  1. pkgname=turbojpeg
  2. pkgver=1.2.1
  3. pkgrel=0
  4. pkgdesc="turbojpeg library from libjpeg-turbo"
  5. arch=('i686' 'x86_64')
  6. url="http://www.libjpeg-turbo.org/About/TurboJPEG"
  7. license=('GPL' 'custom')
  8. depends=('glibc' 'libjpeg')
  9. makedepends=('nasm')
  10. options=('!libtool')
  11. source=(http://sourceforge.net/projects/libjpeg-turbo/files/$pkgver/libjpeg-turbo-$pkgver.tar.gz)
  12. sha1sums=('a4992e102c6d88146709e8e6ce5896d5d0b5a361')
  13.  
  14. build() {
  15.   cd "$srcdir/libjpeg-turbo-$pkgver"
  16.  
  17.   ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
  18.   make
  19. }
  20.  
  21. check() {
  22.   cd "$srcdir/libjpeg-turbo-$pkgver"
  23.  
  24.   make test
  25. }
  26.  
  27. package() {
  28.   cd "$srcdir/libjpeg-turbo-$pkgver"
  29.  
  30.   make DESTDIR="$pkgdir/" install
  31.  
  32.   # only distribute libturbojpeg
  33.   rm -rf "$pkgdir"/usr/share
  34.   rm "$pkgdir"/usr/include/j*.h
  35.   rm "$pkgdir"/usr/lib/libj*
  36.   rm "$pkgdir"/usr/bin/{djpeg,rdjpgcom,wrjpgcom,jpegtran,cjpeg}
  37.  
  38.   install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
  39.   ln -s ../../doc/libjpeg-turbo/README \
  40.     "$pkgdir/usr/share/licenses/$pkgname/README"
  41.   ln -s ../../doc/libjpeg-turbo/README-turbo.txt \
  42.     "$pkgdir/usr/share/licenses/$pkgname/README-turbo.txt"
  43. }
RAW Paste Data
Top