summaryrefslogtreecommitdiff
path: root/community/lua-posix/PKGBUILD
blob: d52cbac75e8433184222718d03de9cfb9e7f405a (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
42
43
44
45
46
47
# $Id: PKGBUILD 111919 2014-05-26 15:44:44Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Sébastien Luttringer
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Laszlo Papp <djszapi at archlinux us>
# Contributor: Donald Ephraim Curtis <dcurtis@gmail.com>

pkgname=lua-posix
pkgver=31
pkgrel=2
pkgdesc='POSIX library for Lua'
arch=('x86_64' 'i686')
url='https://github.com/luaposix/luaposix'
license=('GPL' 'LGPL')
depends=('lua')
makedepends=('lua' 'git' 'help2man')
options=('!makeflags')
source=("$pkgname::git://github.com/luaposix/luaposix.git#tag=v$pkgver")
md5sums=('SKIP')

prepare() {
  cd "$pkgname"

  ./bootstrap
}

build() {
  cd "$pkgname"

  ./configure \
      LUA=/usr/bin/lua \
      --prefix=/usr \
      --libdir=/usr/lib/lua/5.2 \
      --datadir=/usr/share/lua/5.2 \
      --docdir=/usr/share/doc/lua-posix
  make
}

check() {
  make -C "$pkgname" check || true
}

package() {
  make -C "$pkgname" DESTDIR="$pkgdir" install
}

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