New package: gettext-stub-1
This commit is contained in:
parent
1e57b1d7d6
commit
c8feca0f87
2 changed files with 37 additions and 0 deletions
1
srcpkgs/gettext-stub-devel
Symbolic link
1
srcpkgs/gettext-stub-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
gettext-stub/
|
36
srcpkgs/gettext-stub/template
Normal file
36
srcpkgs/gettext-stub/template
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue