aboutsummaryrefslogtreecommitdiffstats
path: root/main/libguess
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-02 05:07:39 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-02 05:07:39 +0000
commit97e6522caf9c9f032d7f70a8f89febb10b0a0b1a (patch)
treed815d4554bccdd38ae78322facdb01a3b773b7d5 /main/libguess
parent901288fade7678e77eb1ecc1d637381c3fcb91d1 (diff)
downloadaports-97e6522caf9c9f032d7f70a8f89febb10b0a0b1a.tar.bz2
aports-97e6522caf9c9f032d7f70a8f89febb10b0a0b1a.tar.xz
libguess: promote to main
Diffstat (limited to 'main/libguess')
-rw-r--r--main/libguess/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/libguess/APKBUILD b/main/libguess/APKBUILD
new file mode 100644
index 0000000000..a967cdda76
--- /dev/null
+++ b/main/libguess/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=libguess
+pkgver=1.0
+pkgrel=0
+pkgdesc="extremely fast character set guessing library"
+url="http://atheme.org/project/libguess"
+arch="all"
+license="ISC"
+depends=
+makedepends="libmowgli-dev"
+install=
+subpackages="$pkgname-dev"
+source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # workaround bug in busybox
+ sed -e "/touch/s/0001010000/200001010000/g" \
+ -i configure
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="89ef9296162a9b5baf32a321d9e367c0 libguess-1.0.tgz"