diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2016-08-14 23:09:49 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2016-08-14 23:24:50 +0300 |
commit | 773d4aaa076d2c7c4aeb6b8d9ca1ad5eaedeb9fd (patch) | |
tree | 57977917bd5ddf00fe534d54cab60139ec93bac7 /community/lua-sleep/APKBUILD | |
parent | 4e4debee8f4c27add021af7c4488791edc9e3eaf (diff) | |
download | aports-773d4aaa076d2c7c4aeb6b8d9ca1ad5eaedeb9fd.tar.bz2 aports-773d4aaa076d2c7c4aeb6b8d9ca1ad5eaedeb9fd.tar.xz |
community/lua-sleep: moved from main
Diffstat (limited to 'community/lua-sleep/APKBUILD')
-rw-r--r-- | community/lua-sleep/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/lua-sleep/APKBUILD b/community/lua-sleep/APKBUILD new file mode 100644 index 0000000000..e57faea054 --- /dev/null +++ b/community/lua-sleep/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +pkgname=lua-sleep +pkgver=0.1 +pkgrel=1 +pkgdesc="Sleep functions for Lua" +url=http://projects.plentyfact.org/projects/lua-sleep +arch=all +license=public-domain +depends= +makedepends=lua-dev +source="http://dev.alpinelinux.org/archive/lua-sleep/lua-sleep_$pkgver.tar.gz" + +_builddir=$srcdir/lua-sleep_$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + make -C "$_builddir" +} + +package() { + local dir=$pkgdir/usr/lib/lua/5.1 + install -d "$dir" + install "$_builddir/lsleep.so" "$dir" +} + +md5sums="aeb91a0abeb483868e27c4f5add59805 lua-sleep_0.1.tar.gz" |