aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-uuid/APKBUILD
blob: b309e4c12601e7270a1d942a21b922b936ec41cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-uuid
pkgver=2012.05
pkgrel=1
pkgdesc="Lua library generating universally unique identifiers based on libuuid"
url="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#luuid"
arch="all"
license="Public Domain"
depends=
makedepends="lua-dev util-linux-dev"
install=
subpackages=

# seems like they just update the upstream source package. Version is found in
# luuid.c
# For date and checksum see:
# http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/release.txt

source="http://dev.alpinelinux.org/archive/lua-uuid/luuid-$pkgver.tar.gz"
#source="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/luuid.tar.gz"


_builddir="$srcdir"/uuid

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make so || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 uuid.so "$pkgdir"/usr/lib/lua/5.1/uuid.so
}

sha512sums="0530a291a1e249d55faba285d98ffdf163b5aedffdaf403477dd39440e1b95a598c4fc41adcff1f5f83f60cba3493b77cb73b7678db8213d68dfd2c894ed9733  luuid-2012.05.tar.gz"