blob: 68e95b8393304e29f3caeae0a00249b03ef05d83 (
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
|
# Maintainer: milk on freenode
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=ninjas2
pkgname=${_pkgname}-git
pkgver=0.2.0.r344.21740d3
pkgrel=1
epoch=1
pkgdesc="An easy to use sample slicer LV2 & VST plugin and JACK application (git version)"
arch=('i686' 'x86_64')
url="https://github.com/rghvdberg/ninjas2"
license=('GPL3')
groups=('lv2-plugins' 'pro-audio' 'vst-plugins')
depends=('libgl' 'libsamplerate' 'libsndfile')
makedepends=('git' 'jack')
optdepends=('jack: stand-alone JACK application')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/rghvdberg/${_pkgname}.git"
'dpf::git+https://github.com/DISTRHO/DPF.git'
'nanosvg::git+https://github.com/memononen/nanosvg.git')
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd $_pkgname
local ver="$(grep d_version plugins/Ninjas2/Ninjas2Plugin.hpp | awk '{ print $4$5$6 }' | tr ',' '.')"
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
cd $_pkgname
git submodule init
git config submodule.dpf.url "$srcdir"/dpf
git config submodule.external.url "$srcdir"/nanosvg
git -c protocol.file.allow=always submodule update
}
build() {
cd $_pkgname
make
}
package() {
cd $_pkgname
install -Dm775 bin/$_pkgname "$pkgdir"/usr/bin/ninjas2
install -dm755 "$pkgdir"/usr/lib/lv2/${_pkgname}.lv2
install -m644 bin/${_pkgname}.lv2/*.ttl "$pkgdir"/usr/lib/lv2/${_pkgname}.lv2
install -m755 bin/${_pkgname}.lv2/*.so "$pkgdir"/usr/lib/lv2/${_pkgname}.lv2
install -Dm775 bin/${_pkgname}-vst.so -t "$pkgdir"/usr/lib/vst
}
|