aboutsummaryrefslogtreecommitdiffstats
path: root/main/libedit/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/libedit/APKBUILD')
-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 0000000000..09316dbb53
--- /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"