diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-05-01 11:55:35 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2012-05-01 11:55:35 +0000 |
commit | 20313a4d0e4cbe767df8408e32046c642ea59465 (patch) | |
tree | 64e6e49d6e4bde4992cd965ede355f3a1efaa1b2 /main/lua-sleep/APKBUILD | |
parent | 422469ae0f7ff261d41adc5c7efcfc7b3c0d9f7a (diff) | |
download | aports-20313a4d0e4cbe767df8408e32046c642ea59465.tar.bz2 aports-20313a4d0e4cbe767df8408e32046c642ea59465.tar.xz |
testing/awall: moved to main with dependencies (ipset, lua-signal, lua-sleep)
Diffstat (limited to 'main/lua-sleep/APKBUILD')
-rw-r--r-- | main/lua-sleep/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/lua-sleep/APKBUILD b/main/lua-sleep/APKBUILD new file mode 100644 index 000000000..22d135483 --- /dev/null +++ b/main/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=0 +pkgdesc="Sleep functions for Lua" +url=http://projects.plentyfact.org/projects/lua-sleep +arch=all +license=public-domain +depends=lua +makedepends=lua-dev +source=http://projects.plentyfact.org/attachments/download/21/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" |