aboutsummaryrefslogblamecommitdiffstats
path: root/testing/lua-uuid/APKBUILD
blob: 1d237eee376b4e63ced1034c8acdeb952d31e1df (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                     
        
                                                                      
                                    
             
                    
































                                                                                                                                                                    
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=lua-uuid
_realname=uuid
pkgver=0.2.0
pkgrel=1
pkgdesc="A pure Lua uuid generator (modified from a Rackspace module)"
url="https://tieske.github.io/uuid/"
arch="noarch"
license="Apache-2.0"
depends=""
makedepends=""
install=""
options="!check"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/Tieske/uuid/archive/version_$pkgver.tar.gz"
builddir="$srcdir/uuid-version_$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() {
	return 0
}

package() {
	mkdir -p "$pkgdir"
}

_subpackage() {
	local lver="${subpkgname:3:3}"
	pkgdesc="$pkgdesc (for Lua $lver)"
	depends="lua$lver"
	install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
	
	install -Dm644 "$builddir"/src/uuid.lua \
		"$subpkgdir"/usr/share/lua/$lver/uuid.lua
}

sha512sums="1117c76dbbabee6de01d1657339236810822040e20afd974dec302b9d2035ca087d33ef47029c6184203c3e694cc9282a303ce19eadffc71b0f48c6a4a5ef5b0  lua-uuid-0.2.0.tar.gz"