desktop/lua-socket/PKGBUILD

22 lines
565 B
Bash

pkgname=lua-socket
pkgver=3.0rc1
pkgrel=1
pkgdesc='Networking support library for the Lua language'
arch=('x86_64')
url='https://github.com/diegonehab/luasocket'
license=('MIT')
depends=('lua')
source=("https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz")
md5sums=('08bd2f265b244eb4bf5c2c36bf89b759')
build() {
cd luasocket-${pkgver/rc/-rc}
make LUAV=5.1
}
package() {
cd luasocket-${pkgver/rc/-rc}
make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}