From 98489f422cf7117532c21260f212b80754a92e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 2 Aug 2013 13:29:18 +0300 Subject: main/ragel: moved from testing --- main/ragel/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 main/ragel/APKBUILD (limited to 'main/ragel') diff --git a/main/ragel/APKBUILD b/main/ragel/APKBUILD new file mode 100644 index 0000000000..92bb5aa321 --- /dev/null +++ b/main/ragel/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +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" -- cgit v1.2.3