summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9612bba4c1ac8a79dc3db1de31695d9efe5b4fe3 (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
# Maintainer: meskarune <admin@doloresportalatin.info>

pkgname=(lua-unix lua51-unix lua52-unix)
_basename=lunix
pkgver=20170920
pkgrel=1
arch=('x86_64')
url='http://25thandclement.com/~william/projects/lunix.html'
license=('MIT')
makedepends=('lua' 'lua51' 'lua52')
source=("http://25thandclement.com/~william/projects/releases/$_basename-$pkgver.tgz")
md5sums=('e2ef87e5bfc3432127037c9228305002')

build() {
    cd "$_basename-$pkgver"
    make prefix=/usr all
}

package_lua-unix() {
    pkgdesc='lua bindings library for common *nix system APIs'
    cd "$_basename-$pkgver"
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    make prefix=/usr DESTDIR="$pkgdir" install5.3
}

package_lua51-unix() {
    pkgdesc='lua51 bindings library for common *nix system APIs'
    cd "$_basename-$pkgver"
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    make prefix=/usr DESTDIR="$pkgdir" install5.1
}

package_lua52-unix() {
    pkgdesc='lua52 bindings library for common *nix system APIs'
    cd "$_basename-$pkgver"
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
    make prefix=/usr DESTDIR="$pkgdir" install5.2
}