diff options
author | Kåre Hampf | 2015-07-01 17:35:18 +0300 |
---|---|---|
committer | Kåre Hampf | 2015-07-01 17:35:18 +0300 |
commit | b7931ac10ff8269deb26a1bd737d589649926c6d (patch) | |
tree | 613003e96b33b8aa56e1fdcd3a5e05350e5d9c72 | |
download | aur-b7931ac10ff8269deb26a1bd737d589649926c6d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5d53ac549a9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = gsdjvu + pkgdesc = Very efficient way of converting PostScript and PDF documents into DjVu + pkgver = 1.7 + pkgrel = 4 + url = http://djvu.sourceforge.net/gsdjvu.html + arch = i686 + arch = x86_64 + license = custom:unredistributable + depends = libcups>=1.3.9-3 + depends = cairo + depends = libpng12>=1.2.6 + depends = zlib>=1.2.1 + optdepends = djvulibre + noextract = ghostscript-9.14.tar.bz2 + noextract = ghostscript-fonts-std-8.11.tar.gz + options = !libtool + options = !makeflags + source = http://downloads.sourceforge.net/sourceforge/djvu/gsdjvu-1.7.tar.gz + source = http://downloads.ghostscript.com/public/ghostscript-9.14.tar.bz2 + source = http://downloads.sourceforge.net/ghostscript/ghostscript-fonts-std-8.11.tar.gz + md5sums = e0e278b6a99cde6634a2f5f4ee7a7eca + md5sums = 75f2e8ab8891d052ade9b64eb4eb5294 + md5sums = 6865682b095f8c4500c54b285ff05ef6 + +pkgname = gsdjvu + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83d3aa21a5f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: K. Hampf <khampf@users.sourceforge.net> +# Contributor: AndyRTR <andyrtr@archlinux.org> + +pkgname=gsdjvu +pkgver=1.7 +_gsver=9.14 +_fontsver=8.11 +pkgrel=4 +pkgdesc="Very efficient way of converting PostScript and PDF documents into DjVu" +arch=(i686 x86_64) +# This program mixes GPL and CPL licensed codes, so the binaries are not redistributable. +license=('custom:unredistributable') +depends=('libcups>=1.3.9-3' 'cairo' 'libpng12>=1.2.6' 'zlib>=1.2.1') +optdepends=('djvulibre') # for the djvudigital converter +url="http://djvu.sourceforge.net/gsdjvu.html" +source=("http://downloads.sourceforge.net/sourceforge/djvu/gsdjvu-$pkgver.tar.gz" + "http://downloads.ghostscript.com/public/ghostscript-${_gsver}.tar.bz2" + "http://downloads.sourceforge.net/ghostscript/ghostscript-fonts-std-${_fontsver}.tar.gz" ) +noextract=("ghostscript-${_gsver}.tar.bz2" + "ghostscript-fonts-std-${_fontsver}.tar.gz") +options=('!libtool' '!makeflags') +md5sums=('e0e278b6a99cde6634a2f5f4ee7a7eca' + '75f2e8ab8891d052ade9b64eb4eb5294' + '6865682b095f8c4500c54b285ff05ef6') + +build() { + cd "$pkgname-$pkgver" + + mkdir -p BUILD + ln -sf "$srcdir/ghostscript-${_gsver}.tar.bz2" BUILD + ln -sf "$srcdir/ghostscript-fonts-std-${_fontsver}.tar.gz" BUILD + + echo -e 'YES\n\n' | "$srcdir/gsdjvu-$pkgver/build-gsdjvu" || return 1 +} + +package() { + cd "$pkgname-$pkgver" + + install -dm755 "$pkgdir/usr/lib" || return 1 + cp -a BUILD/INST/gsdjvu "$pkgdir/usr/lib" || return 1 + install -dm755 "$pkgdir/usr/bin" || return 1 + ln -s "/usr/lib/gsdjvu/gsdjvu" "$pkgdir/usr/bin/gsdjvu" || return 1 + sed -i -e 's,/usr/bin/gs,/usr/lib/gsdjvu/bin/gs,' "$pkgdir/usr/lib/gsdjvu/gsdjvu" || return 1 + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" || return 1 + install -m644 COPYING* "$pkgdir/usr/share/licenses/$pkgname" || return 1 +} |