summaryrefslogtreecommitdiff
path: root/extra/liblouis/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/liblouis/PKGBUILD')
-rw-r--r--extra/liblouis/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/liblouis/PKGBUILD b/extra/liblouis/PKGBUILD
new file mode 100644
index 000000000..d7a753f32
--- /dev/null
+++ b/extra/liblouis/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 139381 2011-10-01 19:00:00Z ibiru $
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
+pkgname=liblouis
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Open-source braille translator and back-translator"
+arch=(i686 x86_64)
+url="http://code.google.com/p/liblouis/"
+license=('GPL3')
+depends=(glibc)
+makedepends=(help2man python2)
+optdepends=('python2: for python bindings')
+options=(!libtool)
+install=liblouis.install
+source=(http://liblouis.googlecode.com/files/$pkgname-$pkgver.tar.gz)
+sha1sums=('f670c4fd845b3310ec02140fb26d912bdb1df356')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --disable-static
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ cd python
+ LD_PRELOAD+=":$srcdir/$pkgname-$pkgver/liblouis/.libs/liblouis.so"
+ python2 setup.py install --root="$pkgdir" --prefix="/usr" --optimize=1
+}
+# vim:set ts=2 sw=2 et: