aboutsummaryrefslogtreecommitdiffstats
path: root/main/libedit
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-11-14 20:04:30 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2012-11-14 20:04:30 +0000
commit3a59394f23f3824fc72f422d509d26a746201c28 (patch)
tree0aebf36fdd4cc8830ce7216ed73d9dcdbc4ddf76 /main/libedit
parent00403803360acda8df32228994d80ec3d48215fc (diff)
downloadaports-3a59394f23f3824fc72f422d509d26a746201c28.tar.bz2
aports-3a59394f23f3824fc72f422d509d26a746201c28.tar.xz
main/libedit: new aport
Diffstat (limited to 'main/libedit')
-rw-r--r--main/libedit/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/libedit/APKBUILD b/main/libedit/APKBUILD
new file mode 100644
index 000000000..09316dbb5
--- /dev/null
+++ b/main/libedit/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=libedit
+pkgver=3.0
+pkgrel=0
+pkgdesc="netbsd line editing library"
+url="http://www.thrysoee.dk/editline/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev="ncurses-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.thrysoee.dk/editline/libedit-20120601-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libedit-20120601-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="e50f6a7afb4de00c81650f7b1a0f5aea libedit-20120601-3.0.tar.gz"