summaryrefslogtreecommitdiffstats
path: root/main/ragel
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-08-02 13:29:18 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-08-02 13:29:18 +0300
commit98489f422cf7117532c21260f212b80754a92e41 (patch)
treec32cae62e6f0ceca3592b0444904dfd847b98244 /main/ragel
parent766ffa0f26fa85486ce272c8260924bfffcabf65 (diff)
downloadaports-98489f422cf7117532c21260f212b80754a92e41.tar.bz2
aports-98489f422cf7117532c21260f212b80754a92e41.tar.xz
main/ragel: moved from testing
Diffstat (limited to 'main/ragel')
-rw-r--r--main/ragel/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/ragel/APKBUILD b/main/ragel/APKBUILD
new file mode 100644
index 000000000..92bb5aa32
--- /dev/null
+++ b/main/ragel/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ragel
+pkgver=6.7
+pkgrel=0
+pkgdesc="Finite state machine compiler"
+url="http://www.complang.org/ragel/"
+arch="all"
+license="GPLv2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.complang.org/ragel/ragel-$pkgver.tar.gz"
+
+_builddir="$srcdir"/ragel-$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 \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="f4423e0d8a6538dd4e61498fcfad3cec ragel-6.7.tar.gz"