aboutsummaryrefslogtreecommitdiffstats
path: root/community/bam
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-04 22:23:08 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-30 15:09:17 +0000
commitbc041ed545bd56d993d0888f6cae1f85d67da7db (patch)
tree838021d0e6beb5511d8fdc4859a71971fb34f87e /community/bam
parent07afa39066e95f755681d4f81658f98f572efb36 (diff)
downloadaports-bc041ed545bd56d993d0888f6cae1f85d67da7db.tar.bz2
aports-bc041ed545bd56d993d0888f6cae1f85d67da7db.tar.xz
community/bam: enable check and modernize
- Fix license - Use modern style - Fix compilation of tests against lua5.3
Diffstat (limited to 'community/bam')
-rw-r--r--community/bam/APKBUILD22
-rw-r--r--community/bam/use-lua5.3.patch17
2 files changed, 30 insertions, 9 deletions
diff --git a/community/bam/APKBUILD b/community/bam/APKBUILD
index c39408a956..cf62375e68 100644
--- a/community/bam/APKBUILD
+++ b/community/bam/APKBUILD
@@ -2,25 +2,29 @@
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=bam
pkgver=0.5.1
-pkgrel=1
+pkgrel=2
pkgdesc="Fast and flexible build system using Lua"
arch="all !s390x" #luajit unavail on excluded arches
url="https://github.com/matricks/bam"
-makedepends="lua5.3-dev luajit-dev"
-license='ZLIB'
-options="!check"
-source="$pkgname-$pkgver.tar.gz::https://github.com/matricks/bam/archive/v$pkgver.tar.gz"
-builddir="$srcdir"/$pkgname-$pkgver
+makedepends="lua5.3-dev"
+checkdepends="python"
+license='Zlib'
+source="$pkgname-$pkgver.tar.gz::https://github.com/matricks/bam/archive/v$pkgver.tar.gz
+ use-lua5.3.patch
+ "
build() {
- cd "$builddir"
sh make_unix.sh
}
+check() {
+ make test
+}
+
package() {
- cd "$builddir"
install -Dm755 bam "$pkgdir"/usr/bin/bam
install -Dm755 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-sha512sums="e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef bam-0.5.1.tar.gz"
+sha512sums="e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef bam-0.5.1.tar.gz
+7ad509adb06c896bc66f16e548d4ec8ef44a6c98571ae0a6e92b964717ff7f4981852792cb5bb83cb23ad4902e95aadf505c9f48ab9803b2359783a27be57c3b use-lua5.3.patch"
diff --git a/community/bam/use-lua5.3.patch b/community/bam/use-lua5.3.patch
new file mode 100644
index 0000000000..02a96ad6af
--- /dev/null
+++ b/community/bam/use-lua5.3.patch
@@ -0,0 +1,17 @@
+diff --git a/Makefile b/Makefile
+index d804874..c661181 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,9 +9,9 @@ PYTHON ?= python
+
+
+ # flags
+-LUA_LIBS := $(shell $(PKG_CONFIG) --libs lua 2>/dev/null || echo "-llua")
++LUA_LIBS := $(shell $(PKG_CONFIG) --libs lua5.3 2>/dev/null || echo "-llua")
+ LIBS += -lm -lpthread $(LUA_LIBS) -ldl
+-LUA_CFLAGS := $(shell $(PKG_CONFIG) --cflags lua 2>/dev/null || echo "-I/usr/include/lua")
++LUA_CFLAGS := $(shell $(PKG_CONFIG) --cflags lua5.3 2>/dev/null || echo "-I/usr/include/lua")
+ CFLAGS += $(LUA_CFLAGS)
+
+
+