From 062d1ba2c4d5de52d97f339c5a3ac1199b8533f6 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 15 Sep 2011 23:14:42 +0000 Subject: Thu Sep 15 23:14:42 UTC 2011 --- community/iksemel/PKGBUILD | 27 ++++++++++++++++----------- community/iksemel/iksemel.install | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 community/iksemel/iksemel.install (limited to 'community/iksemel') diff --git a/community/iksemel/PKGBUILD b/community/iksemel/PKGBUILD index 242ec9323..9034cbbe1 100644 --- a/community/iksemel/PKGBUILD +++ b/community/iksemel/PKGBUILD @@ -1,26 +1,31 @@ -# $Id: PKGBUILD 1020 2009-08-11 22:19:38Z mherych $ -# Maintainer: Roman Kyrylych +# $Id: PKGBUILD 55571 2011-09-14 10:35:20Z andrea $ # Maintainer: Mateusz Herych -# Contributos: Guillermo Vaya driadan@willinux.net +# Contributor: Roman Kyrylych +# Contributor: Guillermo Vaya driadan@willinux.net pkgname=iksemel pkgver=1.4 -pkgrel=1 +pkgrel=2 pkgdesc="XML parser library for Jabber applications in ANSI C" arch=('i686' 'x86_64') url="http://code.google.com/p/iksemel/" license=('LGPL') -depends=('gnutls') -source=(http://iksemel.googlecode.com/files/iksemel-$pkgver.tar.gz) +depends=('glibc') +install=iksemel.install +source=("http://iksemel.googlecode.com/files/${pkgname}-$pkgver.tar.gz") md5sums=('532e77181694f87ad5eb59435d11c1ca') options=('!libtool') build() { - cd $startdir/src/$pkgname-$pkgver + cd "${srcdir}"/$pkgname-$pkgver ./configure --prefix=/usr \ --infodir=/usr/share/info - make || return 1 - make DESTDIR=$startdir/pkg install - mv $pkgdir/usr/share/info/$pkgname $pkgdir/usr/share/info/$pkgname.info - rm -rf $pkgdir/usr/share/info/dir + make +} + +package() { + cd "${srcdir}"/$pkgname-$pkgver + make DESTDIR="${pkgdir}" install + mv "${pkgdir}"/usr/share/info/$pkgname "${pkgdir}"/usr/share/info/$pkgname.info + rm -rf "${pkgdir}"/usr/share/info/dir } diff --git a/community/iksemel/iksemel.install b/community/iksemel/iksemel.install new file mode 100644 index 000000000..1cd1dbf31 --- /dev/null +++ b/community/iksemel/iksemel.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(iksemel.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $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 $infodir/dir 2> /dev/null + done +} -- cgit v1.2.3-54-g00ecf