diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2022-07-07 10:09:02 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-02 15:57:47 -0500 |
commit | f1adb257ce549e24ac063e89b98cd32dc7f408c3 (patch) | |
tree | b7007c9ac21d655f560c3345270f6be15b6f07ef | |
parent | f501eba1775d96f4438e2086e4b66966f2ec06a8 (diff) | |
download | packages-f1adb257ce549e24ac063e89b98cd32dc7f408c3.tar.gz packages-f1adb257ce549e24ac063e89b98cd32dc7f408c3.tar.bz2 packages-f1adb257ce549e24ac063e89b98cd32dc7f408c3.tar.xz packages-f1adb257ce549e24ac063e89b98cd32dc7f408c3.zip |
user/liblouis: new package
-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" |