Guest User

tif22pnm v0.13 PKGBUILD

a guest
Dec 28th, 2011
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Stefan Husmann  <stefan.husmann@t-systems.com>
  2. pkgname=tif22pnm
  3. pkgver=0.13
  4. pkgrel=1
  5. pkgdesc="converter used by sam2p if available"
  6. arch=('i686' 'x86_64')
  7. depends=('libpng' 'libtiff')
  8. url="http://pts.szit.bme.hu"
  9. license=('GPL')
  10. provides=(tif22pnm)
  11. source=(http://sam2p.googlecode.com/files/$pkgname-$pkgver.tar.gz do.sh.patch)
  12. md5sums=('b52f15b5999d0955c67f52d82fe66a8c'
  13.          '3ebce852a463c903b5a8b584cad025f2')
  14.  
  15. build() {
  16.   cd "$srcdir/$pkgname-$pkgver"
  17.  
  18.   # patching do.sh
  19.   # Inspiration:
  20.   # http://code.google.com/p/pdfsizeopt/issues/detail?id=48#c9 --> -lz flag
  21.   # "undefined reference to symbol 'pow@@GLIBC_2.2.5'" --> -lm flag
  22.   # https://aur.archlinux.org/packages.php?ID=7573
  23.   cp "$srcdir/do.sh.patch" do.sh.patch
  24.   patch -p0 < do.sh.patch
  25.   rm do.sh.patch
  26.  
  27.   ./configure --prefix=$pkgdir/usr
  28.   ./do.sh compile
  29. }
  30. package() {
  31.   cd "$srcdir/$pkgname-$pkgver"
  32.  
  33.   install -d $pkgdir/usr/share/tif22pnm
  34.   install -d $pkgdir/usr/bin
  35.   install -m644 README $pkgdir/usr/share/tif22pnm
  36.   install -m755 tif22pnm $pkgdir/usr/bin
  37.   install -m755 png22pnm $pkgdir/usr/bin
  38. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×