Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 13th, 2011  |  syntax: Bash  |  size: 1.21 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # $Id: PKGBUILD 129225 2011-06-26 02:06:08Z allan $
  2. # Maintainer: Allan McRae <allan@archlinux.org>
  3. # Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
  4.  
  5. pkgname=libjpeg-turbo
  6. pkgver=1.1.1
  7. pkgrel=3
  8. pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
  9. arch=('i686' 'x86_64')
  10. url="http://libjpeg-turbo.virtualgl.org/"
  11. license=('GPL' 'custom')
  12. depends=('glibc')
  13. makedepends=('nasm')
  14. provides=('libjpeg=8.0.2')
  15. conflicts=('libjpeg')
  16. replaces=('libjpeg')
  17. options=('!libtool')
  18. source=(http://sourceforge.net/projects/$pkgname/files/$pkgver/$pkgname-$pkgver.tar.gz)
  19. md5sums=('03b9c1406c7bfdc204313c2917ce6962')
  20.  
  21. build() {
  22.   cd "$srcdir/$pkgname-$pkgver"
  23.  
  24.   ./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
  25.   make
  26. }
  27.  
  28. package() {
  29.   cd "$srcdir/$pkgname-$pkgver"
  30.  
  31.   make DESTDIR="$pkgdir/" install
  32.  
  33.   # provide jpegint.h as it is required by various software
  34.   install -m644 jpegint.h $pkgdir/usr/include/
  35.  
  36.   # do not distributre libturbojpeg as it is unversioned
  37.   #rm $pkgdir/usr/lib/libturbojpeg.{so,a}
  38.   #rm $pkgdir/usr/include/turbojpeg.h
  39.   #rm $pkgdir/usr/bin/jpgtest
  40.  
  41.   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/libjpeg-turbo/LICENSE"
  42. }