diff options
Diffstat (limited to 'testing/re2c/APKBUILD')
-rw-r--r-- | testing/re2c/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/re2c/APKBUILD b/testing/re2c/APKBUILD new file mode 100644 index 000000000..9867fece2 --- /dev/null +++ b/testing/re2c/APKBUILD @@ -0,0 +1,37 @@ +# 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" +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" |