summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:15:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:15:35 (GMT)
commit2b35f099a6d9245ee234c1e57a3b7b436098b1af (patch)
treec52ccc372d3bca608002df975f50ff702c663e08
parentb30e0fd6b09f179d2b3280f4eaa2600729325b42 (diff)
downloadlinhes_pkgbuild-2b35f099a6d9245ee234c1e57a3b7b436098b1af.zip
linhes_pkgbuild-2b35f099a6d9245ee234c1e57a3b7b436098b1af.tar.gz
linhes_pkgbuild-2b35f099a6d9245ee234c1e57a3b7b436098b1af.tar.bz2
ed 1.6
-rw-r--r--abs/core/ed/PKGBUILD33
-rw-r--r--abs/core/ed/ed.install22
2 files changed, 21 insertions, 34 deletions
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 <dreisner@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
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: