summaryrefslogtreecommitdiff
path: root/community/luasocket/PKGBUILD
blob: 21e96f09dab1b5cf3d58ad09dacc75e4b6be0ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: PKGBUILD 49637 2011-06-18 20:20:18Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Anders Bergh <anders1@gmail.com>

pkgname=luasocket
pkgver=2.0.2
pkgrel=5
pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language."
arch=('i686' 'x86_64')
url="http://www.cs.princeton.edu/~diego/professional/luasocket/"
license=('MIT')
depends=(lua)
source=(http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz
	luasocket-arch.patch
	luasocket-unixsocket.patch)
md5sums=('41445b138deb7bcfe97bff957503da8e'
         '3270f42ff374f230c6450f49132f8625'
         '8d116bb70bd7a2fa15cbe949d4cfc35e')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -p1 < $srcdir/luasocket-arch.patch
  patch -p1 < $srcdir/luasocket-unixsocket.patch
  make
  make DESTDIR="$pkgdir" install
  install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}