aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman@gmail.com>2011-02-04 08:05:13 -0500
committerJeff Bilyk <jbilyk@gmail.com>2011-02-07 20:18:06 +0000
commit4cf4686c7fa1e7cde6f44c8f44955217e49aad5d (patch)
treef6a35778276c46ba96b9b3008d34dc7bb8c57db2 /testing
parente73712dc96f95c0bf463fc53c4ae23e8b319b14c (diff)
downloadaports-4cf4686c7fa1e7cde6f44c8f44955217e49aad5d.tar.bz2
aports-4cf4686c7fa1e7cde6f44c8f44955217e49aad5d.tar.xz
testing/lynx: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/lynx/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/lynx/APKBUILD b/testing/lynx/APKBUILD
new file mode 100644
index 0000000000..af51ce0f29
--- /dev/null
+++ b/testing/lynx/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+pkgname=lynx
+pkgver=2.8.7
+pkgrel=2
+pkgdesc="Cross-platform text-based browser"
+url="http://lynx.isc.org"
+arch="all"
+license="GPL"
+depends=
+makedepends="openssl-dev gettext zlib-dev glib-dev perl pkgconfig"
+install=""
+subpackages="$pkgname-doc"
+source="http://lynx.isc.org/current/$pkgname${pkgver}rel.$pkgrel.tar.bz2"
+
+_builddir="$srcdir/${pkgname}2-8-7"
+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 || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+doc() {
+ cd "$_builddir"
+ install -Dm644 docs/* "$subpkgdir"/usr/share/doc/$pkgname
+ mv "$pkgdir"/usr/man/ "$subpkgdir"/usr/share/
+}
+
+md5sums="cb936aef812e4e463ab86cbbe14d4db9 lynx2.8.7rel.2.tar.bz2"