summaryrefslogtreecommitdiffstats
path: root/abs/core/sharutils
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/sharutils')
-rw-r--r--abs/core/sharutils/PKGBUILD38
-rw-r--r--abs/core/sharutils/install18
-rw-r--r--abs/core/sharutils/sharutils.install20
3 files changed, 37 insertions, 39 deletions
diff --git a/abs/core/sharutils/PKGBUILD b/abs/core/sharutils/PKGBUILD
index 3080510..c044435 100644
--- a/abs/core/sharutils/PKGBUILD
+++ b/abs/core/sharutils/PKGBUILD
@@ -1,32 +1,32 @@
-# $Id: PKGBUILD 98391 2010-11-08 19:40:29Z andrea $
-# Maintainer:
+# $Id: PKGBUILD 123635 2011-05-11 23:31:36Z bisson $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=sharutils
-pkgver=4.10
+pkgver=4.11.1
pkgrel=1
-pkgdesc="GNU shar makes so-called shell archives out of many files"
-arch=('i686' 'x86_64')
-url="http://www.gnu.org/software/sharutils/"
+pkgdesc='Makes so-called shell archives out of many files'
+url='http://www.gnu.org/software/sharutils/'
license=('GPL')
+arch=('i686' 'x86_64')
depends=('perl' 'gettext' 'texinfo')
-install=${pkgname}.install
-source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('f918859228238d69e1ce78ccbec8f9e0')
+source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
+sha1sums=('e9c9f869f8ecb3bcb30cc323e02e0a1266aeb109')
+
+install=install
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --disable-nls
- make
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+
+ make
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
-
- rm ${pkgdir}/usr/share/info/dir
- gzip ${pkgdir}/usr/share/info/*
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}
diff --git a/abs/core/sharutils/install b/abs/core/sharutils/install
new file mode 100644
index 0000000..1de7696
--- /dev/null
+++ b/abs/core/sharutils/install
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(sharutils.info.gz)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir
+ done
+}
diff --git a/abs/core/sharutils/sharutils.install b/abs/core/sharutils/sharutils.install
deleted file mode 100644
index e8d9f8c..0000000
--- a/abs/core/sharutils/sharutils.install
+++ /dev/null
@@ -1,20 +0,0 @@
-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
-}
-
-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
-}