diff options
Diffstat (limited to 'abs')
-rw-r--r-- | abs/core/ed/PKGBUILD | 14 | ||||
-rw-r--r-- | abs/core/ed/ed.install | 18 |
2 files changed, 25 insertions, 7 deletions
diff --git a/abs/core/ed/PKGBUILD b/abs/core/ed/PKGBUILD index dac07e3..96ba7fe 100644 --- a/abs/core/ed/PKGBUILD +++ b/abs/core/ed/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 146434 2012-01-11 04:50:27Z dreisner $ +# $Id: PKGBUILD 189480 2013-07-03 11:36:49Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> # Maintainer: Andreas Radke <andyrtr@archlinux.org> pkgname=ed -pkgver=1.6 +pkgver=1.9 pkgrel=1 pkgdesc="A POSIX-compliant line-oriented text editor" arch=('i686' 'x86_64') @@ -11,13 +11,16 @@ license=('GPL') url="http://www.gnu.org/software/ed/ed.html" depends=('glibc' 'sh') options=('!emptydirs') -source=(ftp://ftp.gnu.org/gnu/ed/${pkgname}-${pkgver}.tar.gz) -md5sums=('9a78593decccaa889523aa4bb555ed4b') +source=("ftp://ftp.gnu.org/gnu/ed/$pkgname-$pkgver.tar.gz"{,.sig}) +install='ed.install' +md5sums=('565b6d1d5a9a8816b9b304fc4ed9405d' + 'SKIP') build() { cd "$pkgname-$pkgver" ./configure --prefix=/ \ + --bindir=/usr/bin \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ "CFLAGS=$CFLAGS" \ @@ -32,7 +35,4 @@ check() { package() { make -C "$pkgname-$pkgver" "DESTDIR=$pkgdir" install - - # nuke info pages - rm -r "$pkgdir/usr/share/info" } diff --git a/abs/core/ed/ed.install b/abs/core/ed/ed.install new file mode 100644 index 0000000..2be95d9 --- /dev/null +++ b/abs/core/ed/ed.install @@ -0,0 +1,18 @@ +infodir=usr/share/info +filelist=(ed.info) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2>/dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2>/dev/null + done +} |