42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'libpaper'
|
|
pkgname=libpaper
|
|
version=1.1.28
|
|
revision=1
|
|
build_style=gnu-configure
|
|
conf_files="/etc/papersize"
|
|
hostmakedepends="automake gettext libtool"
|
|
short_desc="Library for handling paper characteristics"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2"
|
|
homepage="http://packages.debian.org/unstable/source/libpaper"
|
|
distfiles="${DEBIAN_SITE}/main/libp/${pkgname}/${pkgname}_${version}.tar.gz"
|
|
checksum=c8bb946ec93d3c2c72bbb1d7257e90172a22a44a07a07fb6b802a5bb2c95fddc
|
|
make_dirs="/etc/libpaper.d 0755 root root"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
# add systemwide default papersize read by many office applications
|
|
vmkdir etc
|
|
echo '# Simply write the paper name. See papersize(5) for possible values' > ${DESTDIR}/etc/papersize
|
|
|
|
# add localisation
|
|
cd debian/po
|
|
for i in $(ls *.po); do
|
|
install -dm755 ${DESTDIR}/usr/share/locale/${i%.po}/LC_MESSAGES/;
|
|
msgfmt $i -o ${DESTDIR}/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo;
|
|
done
|
|
}
|
|
|
|
libpaper-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|