aboutsummaryrefslogtreecommitdiffstats
path: root/main/libunistring
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-15 08:34:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-15 08:57:45 +0000
commit92db113c4bbc7a4ed1280ae4685ad9b7e9d098da (patch)
tree0ddaceadb4282a1c65e9f6786cdd245f733d1ffa /main/libunistring
parent16d09afb57e1cacbdeeedf89a6308ee970390069 (diff)
downloadaports-92db113c4bbc7a4ed1280ae4685ad9b7e9d098da.tar.bz2
aports-92db113c4bbc7a4ed1280ae4685ad9b7e9d098da.tar.xz
main/libunistring: move from testing
guile-2 needs it
Diffstat (limited to 'main/libunistring')
-rw-r--r--main/libunistring/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/main/libunistring/APKBUILD b/main/libunistring/APKBUILD
new file mode 100644
index 0000000000..8e69276123
--- /dev/null
+++ b/main/libunistring/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libunistring
+pkgver=0.9.5
+pkgrel=1
+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 \
+ --disable-static \
+ || 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"