summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/enca/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/enca/APKBUILD b/main/enca/APKBUILD
new file mode 100644
index 000000000..bac568143
--- /dev/null
+++ b/main/enca/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=enca
+pkgver=1.13
+pkgrel=0
+pkgdesc="Charset analyser and converter"
+url="http://freshmeat.net/projects/enca/"
+license="GPL"
+depends=
+makedepends=
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://dl.cihar.com/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --libexecdir=/usr/lib \
+ --enable-external \
+ --without-libiconv
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="762bead5d9a0a5e55024e1102baaa89d enca-1.13.tar.bz2"