diff options
author | Brendan Tildesley <brendan.tildesley@gmail.com> | 2011-11-09 21:57:48 +1100 |
---|---|---|
committer | Brendan Tildesley <brendan.tildesley@gmail.com> | 2011-11-09 21:57:48 +1100 |
commit | f5fd2b52e25078587ef807053199e6b9c8846c73 (patch) | |
tree | 40b777837e5a7ccdbca6e1ef8f25ce8e8fd76812 | |
parent | a6213ef0351934c835c5676d48705530b77e980b (diff) |
GNU libunistring 0.9.3
-rw-r--r-- | ~brendan/libunistring/PKGBUILD | 27 | ||||
-rw-r--r-- | ~brendan/libunistring/libunistring.install | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/~brendan/libunistring/PKGBUILD b/~brendan/libunistring/PKGBUILD new file mode 100644 index 000000000..634195741 --- /dev/null +++ b/~brendan/libunistring/PKGBUILD @@ -0,0 +1,27 @@ +# Former Arch maintainer: Emmanuel 'guinness' Boudreault +# Current Arch maintainer: Patrick McCarty <pnorcks at gmail dot com> +# Parabola maintainer: Brendan Tildesley <brendan.tildesley@gmail.com> + +pkgname=libunistring +pkgver=0.9.3 +pkgrel=1 +pkgdesc="GNU library for manipulating Unicode strings and C strings." +url="http://www.gnu.org/software/libunistring/" +arch=('i686' 'x86_64') +license=('GPL3' 'LGPL3') +depends=('glibc') +install=${pkgname}.install +source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz) +md5sums=('db8eca3b64163abadf8c40e5cecc261f') +sha256sums=('610d3ec724fbdaa654afe3cff20b9f4d504be3fd296fded2e0f7f764041006a3') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install || return 1 +}
\ No newline at end of file diff --git a/~brendan/libunistring/libunistring.install b/~brendan/libunistring/libunistring.install new file mode 100644 index 000000000..58dd2ef8e --- /dev/null +++ b/~brendan/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: |