diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2016-01-25 10:25:49 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-01-26 09:01:08 +0000 |
commit | 6b0182d1bdb3ce7f117926b74d6db8d0c45c2718 (patch) | |
tree | 171f77ac16dab752ca708eeb599adabc865197d4 /main/gettext/APKBUILD | |
parent | 4b03fc71b1292f065f78fa3c7f3122437e93447e (diff) | |
download | aports-6b0182d1bdb3ce7f117926b74d6db8d0c45c2718.tar.bz2 aports-6b0182d1bdb3ce7f117926b74d6db8d0c45c2718.tar.xz |
main/gettext: upgrade to 0.9.17 and some cleanups
- unneded dependencies and patches are removed
- add all optional dependencies as described in /DEPENDENCIES file
- shared libs moved to -libs and asprintf moved to -asprintf subpkg
Diffstat (limited to 'main/gettext/APKBUILD')
-rw-r--r-- | main/gettext/APKBUILD | 63 |
1 files changed, 22 insertions, 41 deletions
diff --git a/main/gettext/APKBUILD b/main/gettext/APKBUILD index bd91e7b179..603cd191ed 100644 --- a/main/gettext/APKBUILD +++ b/main/gettext/APKBUILD @@ -1,44 +1,26 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=gettext -pkgver=0.19.6 -pkgrel=3 +pkgver=0.19.7 +pkgrel=0 pkgdesc="GNU locale utilities" url="http://www.gnu.org/software/gettext/gettext.html" arch="all" -license='GPL' +license="GPL" depends= -depends_dev="expat-dev ncurses-dev libxml2-dev" -makedepends="$depends_dev bash" -source="ftp://ftp.gnu.org/gnu/gettext/gettext-$pkgver.tar.xz - " -subpackages="$pkgname-doc $pkgname-dev libintl $pkgname-lang" - -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - cd "$_builddir" - for i in ../*.patch; do - [ -r "$i" ] || continue - msg "Applying $i..." - patch -p1 < $i || return 1 - done - # fix eglibc-2.16+ build issue - sed -i -e '/gets is a/d' \ - gettext-tools/gnulib-lib/stdio.in.h \ - gettext-tools/libgettextpo/stdio.in.h \ - gettext-runtime/gnulib-lib/stdio.in.h \ - || return 1 -} +makedepends="perl ncurses-dev libxml2-dev glib-dev libcroco-dev libunistring-dev" +source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz" +subpackages="$pkgname-doc $pkgname-dev $pkgname-lang libintl $pkgname-asprintf $pkgname-libs" +_builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - LIBS="-lrt" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --mandir=/usr/share/man \ --enable-threads=posix \ + --with-pic \ --disable-java \ --disable-static \ || return 1 @@ -47,24 +29,23 @@ build() { package() { cd "$_builddir" - make -j1 DESTDIR="$pkgdir/" install + make -j1 DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/charset.alias } libintl() { - replaces="gettext" + pkgdesc="GNU gettext runtime library" mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libintl.so.* "$subpkgdir"/usr/lib + chmod +x "$subpkgdir"/usr/lib/libintl.so.* +} - rm -rf "$pkgdir"/usr/lib/charset.alias - rmdir -p "$pkgdir"/usr/lib 2>/dev/null - - if [ "$ALPINE_LIBC" != "eglibc" ]; then - mv "$pkgdir"/usr/lib/libintl.so.* \ - "$subpkgdir"/usr/lib || return 1 - fi - - return 0 +asprintf() { + pkgdesc="GNU gettext asprintf library" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libasprintf.so.* "$subpkgdir"/usr/lib } -md5sums="69d79254ee3b41df23f41c2f4fd720d9 gettext-0.19.6.tar.xz" -sha256sums="9b95816620fd1168cb4eeca0e9dc0ffd86e864fc668f76f5e37cc054d6982e51 gettext-0.19.6.tar.xz" -sha512sums="ce30735dea271ed04312a7b06dccf4294658c9776866ff4eb2f3df412154e122a8812af2330aa729d5435fa2ced9da2296a74ec8ef1ad7b0eb024225a8eaaca1 gettext-0.19.6.tar.xz" +md5sums="f81e50556da41b44c1d59ac93474dca5 gettext-0.19.7.tar.xz" +sha256sums="378fa86a091cec3acdece3c961bb8d8c0689906287809a8daa79dc0c6398d934 gettext-0.19.7.tar.xz" +sha512sums="a8ed47fc38d8730ccd46bfa6620c0b42efcfcbfa39fa94ddecb2fa3b62b377827f29e702dc327fbc682b98534e1f54783d21a3bb5ba629f6358be00bfb4da009 gettext-0.19.7.tar.xz" |