From 1982ae8d63ab142a2a16bdf1b055110d9c9f40fd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 May 2011 22:37:15 +0000 Subject: Thu May 12 22:37:08 UTC 2011 --- extra/sharutils/PKGBUILD | 38 +++++++++++++++++++------------------- extra/sharutils/install | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+), 19 deletions(-) create mode 100644 extra/sharutils/install (limited to 'extra/sharutils') diff --git a/extra/sharutils/PKGBUILD b/extra/sharutils/PKGBUILD index 308051009..c04443584 100644 --- a/extra/sharutils/PKGBUILD +++ b/extra/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 # Contributor: Kevin Piche # Contributor: Tom Newsom 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/extra/sharutils/install b/extra/sharutils/install new file mode 100644 index 000000000..1de76964c --- /dev/null +++ b/extra/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 +} -- cgit v1.2.3-54-g00ecf