49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'liblouis'
|
|
pkgname=liblouis
|
|
version=3.13.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-ucs4"
|
|
pycompile_module="louis"
|
|
hostmakedepends="pkg-config help2man python3-devel"
|
|
makedepends="python3-devel"
|
|
depends="python3"
|
|
short_desc="Open-source braille translator and back-translator"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later, LGPL-2.1-or-later"
|
|
homepage="http://liblouis.org/"
|
|
distfiles="https://github.com/liblouis/liblouis/releases/download/v${version}/liblouis-${version}.tar.gz"
|
|
checksum=2803b89a2bff9f02032125fa7b7d0a204a60d8d14f232242344b5f09535e9a01
|
|
disable_parallel_build=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) ;;
|
|
*) configure_args+=" gl_cv_func_getopt_gnu=yes";;
|
|
esac
|
|
|
|
# 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
|
|
}
|
|
}
|