blob: bba8b6e1e6903e14aece681adfa32fedfdc0ce5f (
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
|
# $Id: PKGBUILD 104485 2014-01-21 17:41:26Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Anders Bergh <anders1@gmail.com>
pkgbase=luafilesystem
pkgname=(lua-filesystem lua51-filesystem)
pkgver=1.6.2
pkgrel=3
pkgdesc='File System Library for the Lua Programming Language'
arch=('i686' 'x86_64' 'mips64el')
url='http://www.keplerproject.org/luafilesystem/'
license=('MIT')
makedepends=(lua lua51)
source=(http://github.com/downloads/keplerproject/$pkgbase/$pkgbase-$pkgver.tar.gz
LICENSE)
md5sums=('4e7ec93678c760c4e42cea7d28aafa13'
'beb2b58c4b5c2782304a5b0267a5651b')
build() {
msg2 "Building $pkgbase with Lua 5.1"
cp -a $pkgbase-$pkgver $pkgbase-$pkgver-51
cd $pkgbase-$pkgver-51
make LUA_INC=/usr/include/lua5.1
msg2 "Building $pkgbase with Lua 5.2"
cd "$srcdir"/$pkgbase-$pkgver
make
}
package_lua-filesystem() {
depends=('lua')
cd $pkgbase-$pkgver
make PREFIX="$pkgdir"/usr LUA_LIBDIR='$(PREFIX)/lib/lua/5.2' install
install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_lua51-filesystem() {
depends=('lua51')
conflicts=('luafilesystem')
replaces=('luafilesystem')
cd $pkgbase-$pkgver-51
make PREFIX="$pkgdir"/usr LUA_LIBDIR='$(PREFIX)/lib/lua/5.1' install
install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|