summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 15:01:23 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 15:01:23 -0500
commit327f8156326f7c6556f5c87e40b32639f0444f4a (patch)
treeeddcad599078d261b04ffa6f9b9724394897c52e /user
parent7ae40701ee87c40771bfa8f13019a614263a3767 (diff)
downloadpackages-327f8156326f7c6556f5c87e40b32639f0444f4a.tar.gz
packages-327f8156326f7c6556f5c87e40b32639f0444f4a.tar.bz2
packages-327f8156326f7c6556f5c87e40b32639f0444f4a.tar.xz
packages-327f8156326f7c6556f5c87e40b32639f0444f4a.zip
user/ragel: pull in, modernise
Diffstat (limited to 'user')
-rw-r--r--user/ragel/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/user/ragel/APKBUILD b/user/ragel/APKBUILD
new file mode 100644
index 000000000..9ecfbe587
--- /dev/null
+++ b/user/ragel/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=ragel
+pkgver=6.10
+pkgrel=0
+pkgdesc="Finite state machine compiler"
+url="http://www.complang.org/ragel/"
+arch="all"
+options="!check" # no tests
+license="GPL-2.0+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.colm.net/files/ragel/ragel-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ export CXXFLAGS="$CXXFLAGS -std=gnu++98"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+sha512sums="6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 ragel-6.10.tar.gz"