aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-10 09:13:40 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-10 13:36:36 +0000
commit769846de8fd2f83d83bc9a85e4e7987c062e5090 (patch)
treed03e1265df25157b499d9126238ae6b624d9e737
parent4a4edbbbd8e380a7ec28ea1ba4d22e4a5206484c (diff)
downloadaports-769846de8fd2f83d83bc9a85e4e7987c062e5090.tar.gz
aports-769846de8fd2f83d83bc9a85e4e7987c062e5090.tar.bz2
aports-769846de8fd2f83d83bc9a85e4e7987c062e5090.tar.xz
community/ragel: modernize
-rw-r--r--community/ragel/APKBUILD23
1 files changed, 3 insertions, 20 deletions
diff --git a/community/ragel/APKBUILD b/community/ragel/APKBUILD
index 5c570e5318..1fb1fb5642 100644
--- a/community/ragel/APKBUILD
+++ b/community/ragel/APKBUILD
@@ -7,38 +7,21 @@ pkgdesc="Finite state machine compiler"
url="http://www.complang.org/ragel/"
arch="all"
license="GPL-2.0-or-later"
-depends=""
-depends_dev=""
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
source="https://www.colm.net/files/ragel/ragel-$pkgver.tar.gz"
-_builddir="$srcdir"/ragel-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
export CXXFLAGS="$CXXFLAGS -std=gnu++98"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make || return 1
+ --prefix=/usr
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 ragel-6.10.tar.gz"