void-packages/srcpkgs/liblouis/template
Christopher Brannon de25b430a2 liblouis: update to 3.1.0
Also, build Python 3 bindings.  The only thing that depends on
liblouis is Orca, and Orca needs these.
Build with --enable-ucs4.
To see a justification for why I did that,
have a look at https://bugs.archlinux.org/task/44319
Disable parallel builds; they fail for me.
Make sure .info files are installed.
2017-04-25 07:41:07 -07:00

44 lines
1.3 KiB
Bash

# Template file for 'liblouis'
pkgname=liblouis
version=3.1.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config help2man python3-devel"
makedepends="python3-devel"
depends="python3"
disable_parallel_build=yes
configure_args="--enable-ucs4"
short_desc="Open-source braille translator and back-translator"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://liblouis.org/"
distfiles="https://github.com/$pkgname/$pkgname/releases/download/v$version/$pkgname-$version.tar.gz"
checksum=2132930503b580ecb75b57105db5dbc2fbdae4341ae749e6a432910a3b33ff1c
pycompile_module='louis'
# See my commentary in patches/crosspython.patch
# for justification of pre_build:
pre_build() {
sed -i -e "s/@VERSION@/${version}/" python/setup.py
}
post_install() {
cd python
python3 setup.py install --root="${DESTDIR}"
}
liblouis-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
# .info files aren't installed because texinfo>=5 isn't
# available in the chroot. Prebuilt .info is supplied
# with the source distribution, so install that.
vmkdir usr/share/info
vcopy "doc/*.info*" usr/share/info
}
}