mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/lua-gversion: new aport
https://github.com/jirutka/gversion.lua Lua library for Gentoo-style versioning format
This commit is contained in:
parent
011b2656bc
commit
2de6e6ed1f
39
testing/lua-gversion/APKBUILD
Normal file
39
testing/lua-gversion/APKBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=lua-gversion
|
||||
_pkgname=gversion.lua
|
||||
pkgver=0.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="Lua library for Gentoo-style versioning format"
|
||||
url="https://github.com/jirutka/gversion.lua"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends=""
|
||||
makedepends=""
|
||||
subpackages=""
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jirutka/$_pkgname/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
_luaversions="5.1 5.2 5.3"
|
||||
for _v in $_luaversions; do
|
||||
makedepends="$makedepends lua$_v-dev"
|
||||
subpackages="$subpackages lua$_v-$_pkgname:_package"
|
||||
done
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
_package() {
|
||||
local lver="${subpkgname:3:3}"
|
||||
pkgdesc="$pkgdesc (for lua-$lver)"
|
||||
depends="lua$lver"
|
||||
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
|
||||
|
||||
install -m 644 -D "$builddir"/src/gversion.lua \
|
||||
"$subpkgdir"/usr/share/lua/$lver/gversion.lua
|
||||
}
|
||||
|
||||
md5sums="50cbf9026ed55528d849458c7a5f1061 lua-gversion-0.1.0.tar.gz"
|
||||
sha256sums="ff93691c899384ec4db3eb2cace3ed690057e49517a66723abfc6cc2a3ecb81d lua-gversion-0.1.0.tar.gz"
|
||||
sha512sums="f03a4da00b93eab7bf040b4ad1b6a33fbebc186724db60d213823cf62632879186728a2615b7ff4206efe87c832a080de471ddf3e93b26e7f55e4980f4a47b4e lua-gversion-0.1.0.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user