diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 22:57:57 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-03-31 22:58:09 +0000 |
commit | e48ffeb1f71f5322cfb553f2a716547679988d03 (patch) | |
tree | a7d7c342c8a5159f744d8606ac9caf3eeb967588 | |
parent | b2c2cc4568702a523eb4b3ee82e1acd408b3d3f2 (diff) | |
download | aports-e48ffeb1f71f5322cfb553f2a716547679988d03.tar.bz2 aports-e48ffeb1f71f5322cfb553f2a716547679988d03.tar.xz |
testing/libunistring: new aport
-rw-r--r-- | testing/libunistring/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/libunistring/APKBUILD b/testing/libunistring/APKBUILD new file mode 100644 index 0000000000..9e8629b7d9 --- /dev/null +++ b/testing/libunistring/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=libunistring +pkgver=0.9.5 +pkgrel=0 +pkgdesc="Library for manipulating Unicode strings and C strings" +url="http://www.gnu.org/software/libunistring/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://ftp.gnu.org/gnu/libunistring/libunistring-$pkgver.tar.xz" + +_builddir="$srcdir"/libunistring-$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 \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la + rm -f "$pkgdir"/usr/lib/charset.alias +} + +md5sums="6f8766d0b0497380d725639e19c04310 libunistring-0.9.5.tar.xz" +sha256sums="0b3f4dbea5124f56639a701376ed78e5f595e7b720cfbb0cf1f81f375894c77b libunistring-0.9.5.tar.xz" +sha512sums="ee4d6372b2b0c55b600e5ecdcc1ec43c2092c216d2a20bf985fed7244519177cdfe0adfbf8f09a990db99ac555b07316a3cdd125b9edb33e069746f6a507c3c7 libunistring-0.9.5.tar.xz" |