aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-03-26 08:11:04 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-03-26 08:11:04 +0000
commit604d81d147a1cefbe4c1d27137dda76cdb7a52f8 (patch)
treef15170bcbcf1e14a96cb529ea5db4c7a856325fa /testing
parentfb292d14da356c60107a0588206a3086a808cca2 (diff)
downloadaports-604d81d147a1cefbe4c1d27137dda76cdb7a52f8.tar.bz2
aports-604d81d147a1cefbe4c1d27137dda76cdb7a52f8.tar.xz
testing/lua-sleep: package added
Diffstat (limited to 'testing')
-rw-r--r--testing/lua-sleep/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/lua-sleep/APKBUILD b/testing/lua-sleep/APKBUILD
new file mode 100644
index 0000000000..716d63e740
--- /dev/null
+++ b/testing/lua-sleep/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer:
+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"