aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-04-27 16:40:44 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-04-27 17:19:59 -0500
commitc9fabc2d11a250b1866120a09fc5cbae1d554453 (patch)
tree82df26d0508dd36b4085ebd6e3a652d39eba2bbd /main
parentcefb944d6f379b9c88426ad559a05bff02b18a26 (diff)
downloadaports-c9fabc2d11a250b1866120a09fc5cbae1d554453.tar.bz2
aports-c9fabc2d11a250b1866120a09fc5cbae1d554453.tar.xz
main/re2c: move from testing
Diffstat (limited to 'main')
-rw-r--r--main/re2c/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/re2c/APKBUILD b/main/re2c/APKBUILD
new file mode 100644
index 0000000000..8d994b4373
--- /dev/null
+++ b/main/re2c/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Jeff Bilyk <jbilyk at gmail>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=re2c
+pkgver=0.13.5
+pkgrel=0
+pkgdesc="A tool for writing fast and flexible scanners in C from regular expressions"
+url="http://www.re2c.org"
+arch="all"
+license="Public Domain"
+depends=
+makedepends=
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # As Gentoo build, fix perms
+ chmod -R u+rw .
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="4a97d8f77ed6d2c76c8bd840a43f5633 re2c-0.13.5.tar.gz"