void-packages/srcpkgs/brltty/template

46 lines
1.3 KiB
Bash
Raw Normal View History

2015-08-05 12:44:05 +02:00
# Template file for 'brltty'
pkgname=brltty
version=5.4
2016-04-19 03:42:05 +02:00
revision=1
2015-08-05 12:44:05 +02:00
build_style=gnu-configure
makedepends="ncurses-devel alsa-lib-devel gpm-devel at-spi2-core-devel"
configure_args="--enable-gpm --with-screen-driver=lx --with-tables-directory=/usr/share/brltty"
short_desc="Braille display driver for Linux/Unix"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, LGPL-2.1"
homepage="http://mielke.cc/brltty/"
distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
checksum=5d071bd6be9e7f3f85745088e00471c8dec6ebb77fd5b5c89e8f4cbc2d2c5d4f
2015-08-05 12:44:05 +02:00
2015-08-06 16:48:34 +02:00
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # There is no ldconfig in musl libc
sed -e "s;/sbin/ldconfig -n;echo;" -i configure
esac
}
post_configure() {
case "$XBPS_TARGET_MACHINE" in
arm*-musl) # Fix erroneously detected "#define HAVE_SYS_IO_H 1"
sed -i config.h -e"s;#define HAVE_SYS_IO_H 1;#undef HAVE_SYS_IO_H;"
esac
}
2015-08-05 12:44:05 +02:00
do_install() {
make INSTALL_ROOT=${DESTDIR} install
vsv $pkgname
2016-04-19 03:42:05 +02:00
vsconf Documents/brltty.conf
vdoc Documents/ChangeLog
vcopy Documents/Manual-BRLTTY usr/share/doc/${pkgname}
2015-08-05 12:44:05 +02:00
}
brltty-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/bin/brltty-config
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}