PKGBUILD 565 Bytes
Newer Older
1 2
pkgname=lua-socket
pkgver=3.0rc1
Adrian Chaves (Gallaecio)'s avatar
Adrian Chaves (Gallaecio) committed
3
pkgrel=2
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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"
}