From 2b35f099a6d9245ee234c1e57a3b7b436098b1af Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 6 Aug 2012 21:15:35 -0500 Subject: ed 1.6 --- abs/core/ed/PKGBUILD | 33 +++++++++++++++++++++------------ abs/core/ed/ed.install | 22 ---------------------- 2 files changed, 21 insertions(+), 34 deletions(-) delete mode 100644 abs/core/ed/ed.install diff --git a/abs/core/ed/PKGBUILD b/abs/core/ed/PKGBUILD index 6b152aa..dac07e3 100644 --- a/abs/core/ed/PKGBUILD +++ b/abs/core/ed/PKGBUILD @@ -1,29 +1,38 @@ -# $Id: PKGBUILD 90096 2010-09-07 19:14:19Z andyrtr $ +# $Id: PKGBUILD 146434 2012-01-11 04:50:27Z dreisner $ +# Maintainer: Dave Reisner # Maintainer: Andreas Radke pkgname=ed -pkgver=1.5 +pkgver=1.6 pkgrel=1 -pkgdesc="A POSIX-compliant line editor" +pkgdesc="A POSIX-compliant line-oriented text editor" arch=('i686' 'x86_64') license=('GPL') url="http://www.gnu.org/software/ed/ed.html" -install=ed.install depends=('glibc' 'sh') options=('!emptydirs') source=(ftp://ftp.gnu.org/gnu/ed/${pkgname}-${pkgver}.tar.gz) -md5sums=('e66c03d7e4c67b025d5b6093ec678267') +md5sums=('9a78593decccaa889523aa4bb555ed4b') build() { - cd ${srcdir}/${pkgname}-${pkgver} - ./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info - make || return 1 + cd "$pkgname-$pkgver" + + ./configure --prefix=/ \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + "CFLAGS=$CFLAGS" \ + "LDFLAGS=$LDFLAGS" + + make +} + +check() { + make -C "$pkgname-$pkgver" check } package() { - cd ${srcdir}/${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install || return 1 + make -C "$pkgname-$pkgver" "DESTDIR=$pkgdir" install - cd ${pkgdir}/usr/share/info - ln ed.info red.info + # nuke info pages + rm -r "$pkgdir/usr/share/info" } diff --git a/abs/core/ed/ed.install b/abs/core/ed/ed.install deleted file mode 100644 index 637807f..0000000 --- a/abs/core/ed/ed.install +++ /dev/null @@ -1,22 +0,0 @@ -infodir=/usr/share/info -filelist=(ed.info red.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 -} - -# vim:set ts=2 sw=2 et: -- cgit v0.12