summaryrefslogtreecommitdiff
path: root/testing/ed/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ed/PKGBUILD')
-rw-r--r--testing/ed/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/ed/PKGBUILD b/testing/ed/PKGBUILD
new file mode 100644
index 000000000..98017030d
--- /dev/null
+++ b/testing/ed/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 141699 2011-11-02 12:26:32Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=ed
+pkgver=1.5
+pkgrel=4
+pkgdesc="A POSIX-compliant line-oriented text editor"
+arch=('i686' 'x86_64')
+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=('e66c03d7e4c67b025d5b6093ec678267')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/ \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ "CFLAGS=$CFLAGS" \
+ "LDFLAGS=$LDFLAGS"
+
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make "DESTDIR=$pkgdir" install
+
+ # nuke info pages
+ rm -r "$pkgdir/usr/share/info"
+}