aboutsummaryrefslogtreecommitdiffstats
path: root/main/re2c/APKBUILD
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-08-16 20:03:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-08-17 18:20:02 +0000
commit2c6790a8c5233327fbdd61a5fec71f2aa9727021 (patch)
tree1c5bb350ac10618111b880cfc2fc20a1b4b11005 /main/re2c/APKBUILD
parent8faa35f9f6c83b277dbae70d079fcf98f44e8b28 (diff)
downloadaports-2c6790a8c5233327fbdd61a5fec71f2aa9727021.tar.bz2
aports-2c6790a8c5233327fbdd61a5fec71f2aa9727021.tar.xz
main/re2c: upgrade to 1.0.1 and modernize abuild
Diffstat (limited to 'main/re2c/APKBUILD')
-rw-r--r--main/re2c/APKBUILD35
1 files changed, 14 insertions, 21 deletions
diff --git a/main/re2c/APKBUILD b/main/re2c/APKBUILD
index a1c30e991f..9fec6ba90b 100644
--- a/main/re2c/APKBUILD
+++ b/main/re2c/APKBUILD
@@ -1,44 +1,37 @@
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=re2c
-pkgver=0.16
+pkgver=1.0.1
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=
+checkdepends="bash"
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 .
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
+}
+
+check() {
+ cd "$builddir"
+ make tests
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="3bf508fabd52ed7334647d0ccb956e8d re2c-0.16.tar.gz"
-sha256sums="48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84 re2c-0.16.tar.gz"
-sha512sums="d4fb8078d9566a1fa177331b649cac79e2e45cc9558a22a2212503f6c77c9e6b4238aa01c85c66b86fa4831cdc669cedf8b430d395be6a0c6cfabfb7c61cf8a3 re2c-0.16.tar.gz"
+sha512sums="ab3b652d8f97b0d1be4c7561ce65e28870ab8976f8a31d74a6629b43d2057bfa608c7f393d5e5d59d26f991552a60e6274f554ef58752bdfcfeba330578f1299 re2c-1.0.1.tar.gz"