diff options
Diffstat (limited to 'core/sed')
-rw-r--r-- | core/sed/PKGBUILD | 28 | ||||
-rw-r--r-- | core/sed/sed.install | 20 |
2 files changed, 48 insertions, 0 deletions
diff --git a/core/sed/PKGBUILD b/core/sed/PKGBUILD new file mode 100644 index 000000000..e6e0000a3 --- /dev/null +++ b/core/sed/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 100052 2010-11-20 03:28:20Z stephane $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=sed +pkgver=4.2.1 +pkgrel=3 +pkgdesc="GNU stream editor" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/sed" +license=('GPL3') +groups=('base') +depends=('acl' 'sh') +makedepends=('gettext') +install=sed.install +source=(ftp://ftp.gnu.org/pub/gnu/sed/${pkgname}-${pkgver}.tar.gz) +md5sums=('f0fd4d7da574d4707e442285fd2d3b86') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --bindir=/bin --without-included-regex + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR=${pkgdir} install +} diff --git a/core/sed/sed.install b/core/sed/sed.install new file mode 100644 index 000000000..c0524038b --- /dev/null +++ b/core/sed/sed.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(sed.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $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.gz $infodir/dir 2> /dev/null + done +} |