diff options
-rw-r--r-- | user/liblouis/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/liblouis/APKBUILD b/user/liblouis/APKBUILD new file mode 100644 index 000000000..20f7167d6 --- /dev/null +++ b/user/liblouis/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=liblouis +pkgver=3.22.0 +pkgrel=0 +pkgdesc="A Braille translation and back-translation library" +url="http://liblouis.org/" +arch="all" +license="LGPL-2.1+ AND GPL-3.0+ AND LGPL-3.0+" +depends="" +makedepends="yaml-dev python3-dev texinfo" +subpackages="$pkgname-dev $pkgname-doc $pkgname-python" +source="https://github.com/liblouis/liblouis/releases/download/v$pkgver/liblouis-$pkgver.tar.gz" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --with-yaml + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} +python() { + pkgdesc="Python bindings for liblouis" + arch="noarch" + depends="python3" + cd "$builddir"/python + python3 setup.py install --prefix=/usr --root="$subpkgdir" + rm "$subpkgdir"/usr/lib/python*/site-packages/*.egg-info + rm -r "$subpkgdir"/usr/lib/python*/site-packages/louis/__pycache__ +} + +sha512sums="0ad9466b001935b442732c18ddce973236fd7cd0629a1b7dcc6e4cd61c9fb0b8f78b0ca51a4fd94ca262e8b8687dcc6aed06967dd2cd1bea8b5b1a0c78e1f25f liblouis-3.22.0.tar.gz" |