void-packages/srcpkgs/gettext-stub/template

37 lines
993 B
Bash
Raw Normal View History

2015-08-24 15:52:27 +00:00
# Template file for 'gettext-stub'
pkgname=gettext-stub
version=1
revision=1
wrksrc=${pkgname}
build_pie=yes
short_desc="Gettext little stub"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
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"
}
}