summaryrefslogtreecommitdiffstats
path: root/abs/core/libunistring
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/libunistring')
-rw-r--r--abs/core/libunistring/PKGBUILD32
-rw-r--r--abs/core/libunistring/libunistring.install22
2 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/libunistring/PKGBUILD b/abs/core/libunistring/PKGBUILD
new file mode 100644
index 0000000..a9d9e81
--- /dev/null
+++ b/abs/core/libunistring/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Emmanuel 'guinness' Boudreault
+# Contributor: Patrick McCarty <pnorcks at gmail dot com>
+
+pkgname=libunistring
+pkgver=0.9.6
+pkgrel=1
+pkgdesc='Library for manipulating Unicode strings and C strings'
+url='http://www.gnu.org/software/libunistring/'
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('glibc')
+install=libunistring.install
+source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('dfae4ff5583649ed24d8f368f1d0543b')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ make -C $pkgname-$pkgver check
+}
+
+package() {
+ make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
+}
diff --git a/abs/core/libunistring/libunistring.install b/abs/core/libunistring/libunistring.install
new file mode 100644
index 0000000..58dd2ef
--- /dev/null
+++ b/abs/core/libunistring/libunistring.install
@@ -0,0 +1,22 @@
+infodir=usr/share/info
+filelist=(libunistring.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: