diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-09 01:43:59 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-09 01:43:59 (GMT) |
commit | 6b218299785aedd78128a9c7831aff1a6eefdcb8 (patch) | |
tree | 79f48e3bac89f7120496e6b3021072212fa6a780 /abs/core/sharutils | |
parent | f33c5716af099ce4d779cf67f65204f11b551ed6 (diff) | |
parent | e40ac065f9a09f99b37e898b8684d70a0984f399 (diff) | |
download | linhes_pkgbuild-6b218299785aedd78128a9c7831aff1a6eefdcb8.zip linhes_pkgbuild-6b218299785aedd78128a9c7831aff1a6eefdcb8.tar.gz linhes_pkgbuild-6b218299785aedd78128a9c7831aff1a6eefdcb8.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/sharutils')
-rw-r--r-- | abs/core/sharutils/PKGBUILD | 18 | ||||
-rw-r--r-- | abs/core/sharutils/sharutils.install | 20 |
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 +} |