summaryrefslogtreecommitdiff
path: root/community/luaposix/PKGBUILD
blob: 28be7c8097aaf9b7b4c22a65065b627fb7407f96 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 70187 2012-05-01 12:58:45Z seblu $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Laszlo Papp <djszapi at archlinux us>
# Contributor: Donald Ephraim Curtis <dcurtis@gmail.com>

pkgname=luaposix
pkgver=5.1.19
pkgrel=2
pkgdesc='A POSIX library for Lua programming language'
arch=('i686' 'x86_64' 'mips64el')
url='http://luaforge.net/projects/luaposix/'
license=('GPL' 'LGPL')
depends=('lua')
#checkdepends=('lunit')
options=('!libtool')
source=("https://github.com/downloads/rrthomas/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('3d74beb1b1d887adb689e6e9316abb42')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
              --libdir=/usr/lib/lua/5.1 \
              --datadir=/usr/share/lua/5.1 
  make
}

#check() {
#  cd $pkgname-$pkgver
#  make check
#}

package() {
  cd $pkgname-$pkgver
  make PREFIX=/usr DESTDIR="$pkgdir/" install
  # examples
  install -d "$pkgdir/usr/share/$pkgname/examples"
  install -D -m 644 *.lua "$pkgdir/usr/share/$pkgname/examples"
}

# vim:set ts=2 sw=2 ft=sh et: