aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-connman_dbus/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua-connman_dbus/APKBUILD')
-rw-r--r--community/lua-connman_dbus/APKBUILD46
1 files changed, 23 insertions, 23 deletions
diff --git a/community/lua-connman_dbus/APKBUILD b/community/lua-connman_dbus/APKBUILD
index a2642c9c9c..ad18d86ac1 100644
--- a/community/lua-connman_dbus/APKBUILD
+++ b/community/lua-connman_dbus/APKBUILD
@@ -1,54 +1,54 @@
# Maintainer: Olliver Schinagl <oliver@schinagl.nl>
_luaversions="5.2 5.3"
-pkgname="lua-connman_dbus"
+pkgname=lua-connman_dbus
_rockname="${pkgname#lua-*}"
-pkgver="0.5.0"
+pkgver=0.5.0
pkgrel=0
pkgdesc="Get network information with Connman over DBus"
url="https://github.com/stefano-m/lua-connman_dbus"
arch="all"
license="Apache-2.0"
depends="connman lua-dbus_proxy"
-subpackages="${pkgname}-doc"
+subpackages="$pkgname-doc"
makedepends="luarocks gobject-introspection-dev"
options="!check" # No checks available
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/stefano-m/lua-connman_dbus/archive/v${pkgver}.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/stefano-m/lua-connman_dbus/archive/v$pkgver.tar.gz"
for _luaversion in ${_luaversions}; do
- makedepends="${makedepends} lua${_luaversion}-dev"
- subpackages="${subpackages} lua${_luaversion}-${_rockname}:_subpackage"
+ makedepends="$makedepends lua$_luaversion-dev"
+ subpackages="$subpackages lua$_luaversion-${_rockname}:_subpackage"
done
build() {
for _luaversion in ${_luaversions}; do
- msg "Building for Lua ${_luaversion}"
- "luarocks-${_luaversion}" \
- CC="${CC}" \
- CFLAGS="${CFLAGS} -fPIC" \
- LUA_INCDIR="$(pkg-config --variable=includedir "lua${_luaversion}")" \
- LUA_LIBDIR="$(pkg-config --variable=libdir "lua${_luaversion}")" \
- LUA_VERSION="${_luaversion}" \
- make --tree="./build-${_luaversion}" \
- "rockspec/${_rockname}-${pkgver}-"*".rockspec"
+ msg "Building for Lua $_luaversion"
+ "luarocks-$_luaversion" \
+ CC="$CC" \
+ CFLAGS="$CFLAGS -fPIC" \
+ LUA_INCDIR="$(pkg-config --variable=includedir "lua$_luaversion")" \
+ LUA_LIBDIR="$(pkg-config --variable=libdir "lua$_luaversion")" \
+ LUA_VERSION="$_luaversion" \
+ make --tree="./build-$_luaversion" \
+ "rockspec/$_rockname-$pkgver-"*".rockspec"
done
}
package() {
- mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/"
- cp -r "docs/" "${pkgdir}/usr/share/doc/${pkgname}/"
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname/"
+ cp -r "docs/" "$pkgdir/usr/share/doc/$pkgname/"
}
_subpackage() {
_luaversion="${subpkgname%-$_rockname}"
_luaversion="${_luaversion#lua*}"
- pkgdesc="${pkgdesc} - for Lua ${_luaversion}"
- depends="${depends} lua${_luaversion}"
- install_if="lua${_luaversion} ${pkgname}=${pkgver}-r${pkgrel}"
+ pkgdesc="$pkgdesc - for Lua $_luaversion"
+ depends="$depends lua$_luaversion"
+ install_if="lua$_luaversion $pkgname=$pkgver-r$pkgrel"
- for _luascript in "${builddir}/build-${_luaversion}/share/lua/${_luaversion}/${_rockname}/"*.lua; do
+ for _luascript in "$builddir/build-$_luaversion/share/lua/$_luaversion/$_rockname/"*.lua; do
install -D -m 0644 \
- -t "${subpkgdir}/usr/share/lua/${_luaversion}/${_rockname}" \
- "${_luascript}"
+ -t "$subpkgdir/usr/share/lua/$_luaversion/$_rockname" \
+ "$_luascript"
done
}