summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 858f882decca85d5ff6e0d9fc9992c3f14ae23b9 (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
# Maintainer: osch <oliver at luced de>
pkgname=luajack
pkgver=0.5
pkgrel=2
epoch=
pkgdesc="Lua bindings for the JACK Audio Connection Kit"
arch=('x86_64')
url="https://github.com/stetre/luajack"
license=('MIT')
groups=()
depends=('lua'
         'jack')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/stetre/$pkgname/archive/v$pkgver.tar.gz")
noextract=()
md5sums=()
validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
}

build() {
	cd "$pkgname-$pkgver"
	make PREFIX=/usr
}

package() {
	cd "$pkgname-$pkgver"
	make PREFIX="$pkgdir/usr" install

	install -d            "$pkgdir/usr/share/licenses/$pkgname"
	install -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname"

	install -d                  "$pkgdir`pkg-config --variable=INSTALL_LMOD lua`/luajack"
	install -m644 luajack/*.lua "$pkgdir`pkg-config --variable=INSTALL_LMOD lua`/luajack"

	cd "$pkgdir/usr/lib/"
	ln -sfv lua/5.3/luajack.so libluajack.so
}
md5sums=('4266aafb424e1a337ee7ad2cb13ec25a')