blob: 88c873c3ef66681ad8c2b3722ee5ff266578b907 (
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
48
49
50
51
52
53
54
|
# Contributor: 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>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Maintainer: Eric Berquist <eric DOT berquist AT gmail DOT com>
_pkgname=lua-posix
pkgname="${_pkgname}-git"
pkgver=33.2.1.73.g5536f10
pkgrel=1
pkgdesc='POSIX library for Lua'
arch=('x86_64' 'i686')
url='https://github.com/luaposix/luaposix'
license=('MIT')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
depends=('lua')
makedepends=('git' 'help2man' 'ldoc')
options=('!makeflags')
source=("${_pkgname}::git://github.com/luaposix/luaposix.git")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --always | sed 's+^v++' | sed 's+-+.+g'
}
prepare() {
cd "${_pkgname}"
sed -i '19,20d' bootstrap.conf
}
build() {
cd "${_pkgname}"
luaver=$(/usr/bin/lua -v | cut -d " " -f 2 | cut -d "." -f 1,2)
./bootstrap
./configure \
LUA=/usr/bin/lua \
--prefix=/usr \
--libdir=/usr/lib/lua/${luaver} \
--datadir=/usr/share/lua/${luaver} \
--docdir=/usr/share/doc/lua-posix
make
}
package() {
cd "${_pkgname}"
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
|