mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-12-22 06:28:48 -05:00
upgrade lua-event
This commit is contained in:
parent
0cce47b851
commit
c596739b7e
55
src/lua-event/PKGBUILD
Normal file
55
src/lua-event/PKGBUILD
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# Maintainer: Dwayne Bent <dbb@dbb.io>
|
||||||
|
# Contributor: Timothée Ravier <tim@siosm.fr>
|
||||||
|
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
||||||
|
|
||||||
|
pkgname=(lua-event lua51-event lua52-event)
|
||||||
|
_pkgbase=luaevent
|
||||||
|
pkgver=0.4.6
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="libevent binding for Lua"
|
||||||
|
arch=('i686' 'x86_64' 'aarch64' 'armv6h' 'armv7h')
|
||||||
|
url="https://github.com/harningt/luaevent"
|
||||||
|
license=('MIT')
|
||||||
|
makedepends=('libevent' 'lua51' 'lua52' 'lua')
|
||||||
|
source=($_pkgbase-$pkgver.tar.gz::https://github.com/harningt/$_pkgbase/archive/v$pkgver.tar.gz)
|
||||||
|
sha256sums=('dd12babb252115895618c1243557534decde289bf0c255ffebf0dcd14a18705d')
|
||||||
|
|
||||||
|
# There is no build directory because the Makefile doesn’t allow for separating
|
||||||
|
# both steps, see https://github.com/harningt/luaevent/issues/11
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
package_lua51-event() {
|
||||||
|
depends=('libevent' 'lua51-socket')
|
||||||
|
|
||||||
|
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" \
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
6
src/lua51-event/.gitignore
vendored
6
src/lua51-event/.gitignore
vendored
@ -1,6 +0,0 @@
|
|||||||
/pkg/
|
|
||||||
/src/
|
|
||||||
|
|
||||||
*.tar.gz
|
|
||||||
*.tar.xz
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
# Maintainer: Dwayne Bent <dbb@dbb.io>
|
|
||||||
# Contributor: Timothée Ravier <tim@siosm.fr>
|
|
||||||
|
|
||||||
pkgname=lua51-event
|
|
||||||
_pkgbase=luaevent
|
|
||||||
pkgver=0.4.4
|
|
||||||
pkgrel=1
|
|
||||||
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)
|
|
||||||
sha256sums=('242c95b9cacd87201aa35ba618eb1cd0b0e2a7d1a8fc6734c0bc06dd742e2455')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${_pkgbase}-${pkgver}
|
|
||||||
make LUA_INC_DIR=/usr/include/lua5.1
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd ${_pkgbase}-${pkgver}
|
|
||||||
make INSTALL_DIR_BIN='/usr/lib/lua/5.1' \
|
|
||||||
INSTALL_DIR_LUA='/usr/share/lua/5.1' \
|
|
||||||
DESTDIR="${pkgdir}" \
|
|
||||||
install
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user