updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / luaposix / PKGBUILD
blob7329866cb82948e4497c15cf34a8aafd8a1a99ca
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Laszlo Papp <djszapi at archlinux us>
3 # Contributor: Donald Ephraim Curtis <dcurtis@gmail.com>
5 pkgname=luaposix
6 pkgver=5.1.15
7 pkgrel=1
8 pkgdesc="A POSIX library for Lua"
9 arch=('i686' 'x86_64')
10 url="http://luaforge.net/projects/luaposix/"
11 license=('GPL')
12 depends=('lua')
13 provides=("lcurses") # merged
14 conflicts=("lcurses")
15 options=('!libtool')
16 #source=("http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2")
17 #source=("http://luaforge.net/frs/download.php/4813/$pkgname-$pkgver.tar.bz2")
18 source=("https://github.com/rrthomas/$pkgname/tarball/v$pkgver")
19 md5sums=('af2a1637b61af136056c47d22238423c')
21 build() {
22   cd "$srcdir/rrthomas"*
24   [[ -d build-aux ]] || ./bootstrap
25   ./configure --prefix=/usr \
26               --libdir=/usr/lib/lua/5.1 \
27               --datadir=/usr/share/lua/5.1 
28   make
31 package() {
32   cd "$srcdir/rrthomas"*
34   make PREFIX=/usr DESTDIR="$pkgdir/" install
36   # examples
37   install -d "$pkgdir/usr/share/$pkgname/examples"
38   install -Dm644 *.lua "$pkgdir/usr/share/$pkgname/examples"