From c8feca0f87a239a0417d9f8b6ea5158d30e20343 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 24 Aug 2015 17:52:27 +0200 Subject: [PATCH] New package: gettext-stub-1 --- srcpkgs/gettext-stub-devel | 1 + srcpkgs/gettext-stub/template | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 120000 srcpkgs/gettext-stub-devel create mode 100644 srcpkgs/gettext-stub/template diff --git a/srcpkgs/gettext-stub-devel b/srcpkgs/gettext-stub-devel new file mode 120000 index 00000000000..999a1bb3894 --- /dev/null +++ b/srcpkgs/gettext-stub-devel @@ -0,0 +1 @@ +gettext-stub/ \ No newline at end of file diff --git a/srcpkgs/gettext-stub/template b/srcpkgs/gettext-stub/template new file mode 100644 index 00000000000..aa552e16752 --- /dev/null +++ b/srcpkgs/gettext-stub/template @@ -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 " +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" + } +}