summaryrefslogtreecommitdiff
path: root/user/re2c/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/re2c/APKBUILD')
-rw-r--r--user/re2c/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/re2c/APKBUILD b/user/re2c/APKBUILD
new file mode 100644
index 000000000..782b506b0
--- /dev/null
+++ b/user/re2c/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Jeff Bilyk <jbilyk at gmail>
+# Maintainer:
+pkgname=re2c
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Fast lexer generator for C and C++"
+url="http://re2c.org/"
+arch="all"
+license="Public-Domain"
+checkdepends="bash"
+subpackages="$pkgname-doc"
+source="https://github.com/skvadrik/re2c/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make tests
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="7b2a43828da872a957af88fb0a226e1936a45c8a1020ba1f6544b588aaa61dff8df40e84f9053c30ac8e17c41164e70627d57f5d3721a34b2aba7b1dbf25b6ae re2c-1.0.3.tar.gz"