summaryrefslogtreecommitdiff
path: root/~fauno/minidjvu/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~fauno/minidjvu/PKGBUILD')
-rw-r--r--~fauno/minidjvu/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/~fauno/minidjvu/PKGBUILD b/~fauno/minidjvu/PKGBUILD
new file mode 100644
index 000000000..664e8a3f8
--- /dev/null
+++ b/~fauno/minidjvu/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: Orivej Desh <masecretaire@gmx.fr>
+# Maintainer: Orivej Desh <masecretaire@gmx.fr>
+pkgname=minidjvu
+pkgver=0.8
+pkgrel=2
+pkgdesc="Highly efficient DjVu encoder for black-and-white images"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://minidjvu.sourceforge.net/"
+license=('GPL')
+depends=("gcc-libs" "libtiff")
+options=("!libtool")
+source=("http://downloads.sourceforge.net/project/minidjvu/minidjvu/$pkgver/minidjvu-$pkgver.tar.gz")
+md5sums=('b354eb74d83c6e2d91aab2a6c2879ba7')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr --libdir=/usr/lib
+
+ sed -i -e 's#/usr/bin/gzip#/bin/gzip#' Makefile
+ sed -i -e 's#-9 \$(MANDIR)#-9 $(DESTDIR)$(MANDIR)#' Makefile
+
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p "$pkgdir"/usr/{bin,lib,share/man/man1}
+ make DESTDIR="$pkgdir/" install
+}
+