diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-12-16 14:24:05 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-01-02 08:02:12 +0000 |
commit | 704d5a88f356872bd94ac4dc41d931965effeb84 (patch) | |
tree | a1616dcfbc532c431e97959becac81c79a70f7b5 /main | |
parent | e95542dd4fab12b1256875bcfb4c74a88d5a6819 (diff) | |
download | aports-704d5a88f356872bd94ac4dc41d931965effeb84.tar.bz2 aports-704d5a88f356872bd94ac4dc41d931965effeb84.tar.xz |
main/lua-lxc: new aport
https://brauner.github.io/2018/02/27/lxc-removes-legacy-template-build-system.html
Diffstat (limited to 'main')
-rw-r--r-- | main/lua-lxc/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/main/lua-lxc/APKBUILD b/main/lua-lxc/APKBUILD new file mode 100644 index 0000000000..ddc73e692e --- /dev/null +++ b/main/lua-lxc/APKBUILD @@ -0,0 +1,61 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> +pkgname=lua-lxc +pkgver=3.0.2 +pkgrel=0 +pkgdesc="Lua bindings for LXC" +url="https://linuxcontainers.org" +arch="all" +license="LGPL-2.1" +depends="" +makedepends="lxc-dev automake autoconf libtool" +install="" +source="https://linuxcontainers.org/downloads/lxc/lua-lxc-$pkgver.tar.gz" +builddir="$srcdir/lua-lxc-$pkgver" + +_luaversions="5.1 5.2 5.3" +for _v in $_luaversions; do + makedepends="$makedepends lua$_v-dev" + subpackages="$subpackages lua$_v-${pkgname#lua-}:_subpackage" +done + +build() { + cd "$builddir" + # configure will complain about missing automake randomly + ./autogen.sh + local lver; for lver in $_luaversions; do + export LUA_VERSION=$lver + cp -r "$builddir" "$srcdir"/lua$lver + cd "$srcdir"/lua$lver + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make + done +} + +check() { + local lver; for lver in $_luaversions; do + msg "Running check for Lua $lver" + cd "$srcdir"/lua$lver + make check + done +} + +package() { + mkdir -p "$pkgdir" +} + +_subpackage() { + local lver="${subpkgname:3:3}" + pkgdesc="$pkgdesc (for Lua $lver)" + install_if="$pkgname=$pkgver-r$pkgrel lua$lver" + cd "$srcdir"/lua$lver + make DESTDIR="$subpkgdir" install +} + +sha512sums="6c85b364166d280d1249f4bec53952d90e404a4fd6ceb5742f50fa3493d9b5113d4153129bb79ac99b465aac0b056d6f59479510555bb3b665ab7569b4b221bf lua-lxc-3.0.2.tar.gz" |