diff options
Diffstat (limited to 'main/ragel')
-rw-r--r-- | main/ragel/APKBUILD | 41 |
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" |