aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:01:05 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-22 20:02:14 +0200
commitaef29aa00e4edb6f204bf5e8a82d6af0d121637f (patch)
tree3f5cf14ce3e4712cb5331a1799a5a9f2d4ce0ff1 /main
parente59aa9efd2cbbeb30a00a463d0aa775a52bb3826 (diff)
downloadaports-aef29aa00e4edb6f204bf5e8a82d6af0d121637f.tar.bz2
aports-aef29aa00e4edb6f204bf5e8a82d6af0d121637f.tar.xz
main/lua-evdev: install minimal rock_manifest
Diffstat (limited to 'main')
-rw-r--r--main/lua-evdev/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/lua-evdev/APKBUILD b/main/lua-evdev/APKBUILD
index 931672074f..0a27f9303c 100644
--- a/main/lua-evdev/APKBUILD
+++ b/main/lua-evdev/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaversions="5.1 5.2 5.3"
pkgname=lua-evdev
+_rockname=evdev
pkgver=2.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="Lua module for reading input events"
url="https://github.com/Tangent128/lua-evdev"
arch="all"
@@ -43,6 +44,7 @@ _package() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="$depends lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
+ local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_rockname/$pkgver-1"
cd "$builddir-$lver"
@@ -50,6 +52,9 @@ _package() {
install -D $f "$subpkgdir"/usr/share/lua/$lver/$f || return 1
done
install -D evdev/core.so "$subpkgdir"/usr/lib/lua/$lver/evdev/core.so
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
md5sums="8db10a3079bda7acd20046e0793df678 lua-evdev-2.2.1.tar.gz"