void-packages/srcpkgs/gettext-stub/template
2018-11-24 17:07:56 -02:00

35 lines
976 B
Bash

# Template file for 'gettext-stub'
pkgname=gettext-stub
version=1
revision=2
wrksrc=${pkgname}
short_desc="Gettext little stub"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="WTFPL"
homepage="http://penma.de/code/${pkgname}/"
distfiles="${homepage}/${pkgname}-${version}.tar.gz"
checksum=04af6ee6720c9a90b51f9e420e1b2e75e3ddaba23a30263bf6e10739d8e8f994
provides="gettext-libs-${version}_${revision} gettext-${version}_${revision}"
replaces="gettext-libs>0 gettext>0"
shlib_provides="libintl.so.8"
do_build() {
${CC} ${CFLAGS} -shared ${LDFLAGS} -o libintl.so libintl-stub.c
}
do_install() {
vinstall libintl.so 644 usr/lib libintl.so.8
ln -s /usr/lib/libintl.so.8 $PKGDESTDIR/usr/lib/libintl.so
vinstall libintl-stub.h 644 usr/include
vbin msgfmt
}
gettext-stub-devel_package() {
short_desc+=" - development files"
provides="gettext-devel-${version}_${revision}"
replaces="gettext-devel>0"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}