diff options
author | Nathan Angelacos <nangel@alpinelinux.org> | 2013-05-06 00:31:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-06 14:22:25 +0000 |
commit | d572e0e57c09c04fe600d30b0da8d7fa00369d97 (patch) | |
tree | 100ed6a3a7f6373e0b21660cfd3af6dfc6d65f5e /main/libunistring | |
parent | 7241946fd27e190a36467fd39240ccbced64fe08 (diff) | |
download | aports-d572e0e57c09c04fe600d30b0da8d7fa00369d97.tar.bz2 aports-d572e0e57c09c04fe600d30b0da8d7fa00369d97.tar.xz |
main/libunistring/APKBUILD
New package for unicode string handling
Diffstat (limited to 'main/libunistring')
-rw-r--r-- | main/libunistring/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/libunistring/APKBUILD b/main/libunistring/APKBUILD new file mode 100644 index 000000000..48390ffd8 --- /dev/null +++ b/main/libunistring/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: +# Maintainer: Nathan Angelacos <nangel@alpinelinux.org> +pkgname=libunistring +pkgver=0.9.3 +pkgrel=0 +pkgdesc="GNU Unicode string library" +url="http://www.gnu.org/software/libunistring/" +arch="all" +license="LGPLv3+" +depends="" +depends_dev="libiconv-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://ftp.gnu.org/gnu/libunistring/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr || return 1 + make all || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la +} + +md5sums="db8eca3b64163abadf8c40e5cecc261f libunistring-0.9.3.tar.gz" |