summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/sharutils/PKGBUILD18
-rw-r--r--abs/core/sharutils/sharutils.install20
2 files changed, 31 insertions, 7 deletions
diff --git a/abs/core/sharutils/PKGBUILD b/abs/core/sharutils/PKGBUILD
index 6971668..e1e3a7b 100644
--- a/abs/core/sharutils/PKGBUILD
+++ b/abs/core/sharutils/PKGBUILD
@@ -1,20 +1,24 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# $Id: PKGBUILD 78003 2010-04-19 08:13:10Z dgriffiths $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=sharutils
pkgver=4.6.3
-pkgrel=1
+pkgrel=3
pkgdesc="GNU shar makes so-called shell archives out of many files"
arch=(i686 x86_64)
-depends=('gettext')
-source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/REL-$pkgver/$pkgname-$pkgver.tar.gz)
url="http://www.gnu.org/software/sharutils/"
+license=('GPL')
+depends=('gettext' 'texinfo')
+install=sharutils.install
+source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/REL-${pkgver}/${pkgname}-${pkgver}.tar.gz)
md5sums=('74127a560e59be6dfa8b59993eb0ca91')
build() {
- cd $startdir/src/$pkgname-$pkgver
- ./configure --prefix=/usr --disable-nls
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-nls || return 1
make || return 1
- make prefix=$startdir/pkg/usr install
+ make DESTDIR=${pkgdir} install || return 1
+ rm ${pkgdir}/usr/share/info/dir
+ gzip ${pkgdir}/usr/share/info/*
}
diff --git a/abs/core/sharutils/sharutils.install b/abs/core/sharutils/sharutils.install
new file mode 100644
index 0000000..5c6a2e3
--- /dev/null
+++ b/abs/core/sharutils/sharutils.install
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(sharutils.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
+}