summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot2018-02-02 23:00:10 +0100
committerEmmanuel Gil Peyrot2018-02-02 23:00:10 +0100
commit6b5b50c8ac81def91ee87a2871c0d7350cc5e397 (patch)
treee5d59c1f0b067c3020139eb1fd26006a38a491e6
parent417fe59ff1324671fef8e29782d9c4068dfa4baa (diff)
downloadaur-6b5b50c8ac81def91ee87a2871c0d7350cc5e397.tar.gz
Add support for Lua 5.2 and 5.3, and add the mandatory license file.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD51
2 files changed, 53 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 98d327ea266..6a7b13eb561 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,31 @@
# Generated by mksrcinfo v8
-# Thu Aug 4 18:14:40 UTC 2016
+# Fri Feb 2 21:59:22 UTC 2018
pkgbase = lua51-event
pkgdesc = libevent binding for Lua
pkgver = 0.4.4
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/harningt/luaevent
arch = i686
arch = x86_64
arch = armv6h
arch = armv7h
license = MIT
+ makedepends = libevent
makedepends = lua51
- makedepends = lua51-socket
- depends = libevent>=1.4
+ makedepends = lua52
+ makedepends = lua
source = luaevent-0.4.4.tar.gz::https://github.com/harningt/luaevent/archive/v0.4.4.tar.gz
sha256sums = 242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455
pkgname = lua51-event
+ depends = libevent
+ depends = lua51-socket
+
+pkgname = lua52-event
+ depends = libevent
+ depends = lua52-socket
+
+pkgname = lua-event
+ depends = libevent
+ depends = lua-socket
diff --git a/PKGBUILD b/PKGBUILD
index 793bfd29491..130379a0a3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,54 @@
# Maintainer: Dwayne Bent <dbb@dbb.io>
# Contributor: Timothée Ravier <tim@siosm.fr>
+# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
-pkgname=lua51-event
+pkgname=(lua51-event lua52-event lua-event)
_pkgbase=luaevent
pkgver=0.4.4
-pkgrel=1
+pkgrel=2
pkgdesc="libevent binding for Lua"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="https://github.com/harningt/luaevent"
license=('MIT')
-makedepends=('lua51' 'lua51-socket')
-depends=('libevent>=1.4')
-source=(${_pkgbase}-${pkgver}.tar.gz::https://github.com/harningt/${_pkgbase}/archive/v${pkgver}.tar.gz)
+makedepends=('libevent' 'lua51' 'lua52' 'lua')
+source=($_pkgbase-$pkgver.tar.gz::https://github.com/harningt/$_pkgbase/archive/v$pkgver.tar.gz)
sha256sums=('242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455')
-build() {
- cd ${_pkgbase}-${pkgver}
- make LUA_INC_DIR=/usr/include/lua5.1
-}
+# There is no build directory because the Makefile doesn’t allow for separating
+# both steps, see https://github.com/harningt/luaevent/issues/11
+
+package_lua51-event() {
+ depends=('libevent' 'lua51-socket')
-package() {
- cd ${_pkgbase}-${pkgver}
- make INSTALL_DIR_BIN='/usr/lib/lua/5.1' \
+ cd $_pkgbase-$pkgver
+ make LUA_INC_DIR=/usr/include/lua5.1 \
+ INSTALL_DIR_BIN='/usr/lib/lua/5.1' \
INSTALL_DIR_LUA='/usr/share/lua/5.1' \
- DESTDIR="${pkgdir}" \
+ DESTDIR="$pkgdir" \
install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
+package_lua52-event() {
+ depends=('libevent' 'lua52-socket')
+
+ cd $_pkgbase-$pkgver
+ make LUA_INC_DIR=/usr/include/lua5.2 \
+ INSTALL_DIR_BIN='/usr/lib/lua/5.2' \
+ INSTALL_DIR_LUA='/usr/share/lua/5.2' \
+ DESTDIR="$pkgdir" \
+ install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua-event() {
+ depends=('libevent' 'lua-socket')
+
+ cd $_pkgbase-$pkgver
+ make LUA_INC_DIR=/usr/include \
+ INSTALL_DIR_BIN='/usr/lib/lua/5.3' \
+ INSTALL_DIR_LUA='/usr/share/lua/5.3' \
+ DESTDIR="$pkgdir" \
+ install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}