blob: 7547a713e96f1061b46e37b593433fc4dccf16d6 (
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
55
56
57
58
59
|
# Maintainer: yustin <#archlinux-proaudio@libera.chat>
# Co-Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=rju-git
_pkgname=rju
pkgver=0.19.r15.g359627c
pkgrel=3
pkgdesc='JackAudioToolkit'
arch=( 'x86_64' )
url='https://rohandrape.net/?t=rju'
license=( 'GPL-3.0-only' )
depends=( 'jack' 'libsamplerate' 'liblo' 'libsndfile' 'libxext' 'libx11' 'libpng' 'glibc' 'gcc-libs' 'ncurses' )
makedepends=( 'git' 'asciidoc' 'vst2sdk' 'sed' )
options=( '!buildflags')
conflicts=( 'rju' )
source=( "git+https://gitlab.com/rd--/rju.git"
"git+https://gitlab.com/rd--/r-common.git"
"jack.plumbing"
)
sha256sums=('SKIP'
'SKIP'
'6974f25a6d3ad988564fe307f92e3a70d919dc20b06b14c2d8e4299fdbfd75ba'
)
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_pkgname}"
git config --file=.gitmodules submodule.cmd/r-command.url "$srcdir/r-command"
git -c protocol.file.allow=always submodule update --init
cd cmd
sed 's#VST_SDK = $(HOME)/opt/build/vst3_sdk#VST_SDK = /usr/src/vst2sdk#' -i Makefile
sed "/int osc/s/void \*d/lo_message d/" -i rju-dl.c
sed "/int osc/s/void \*d/lo_message d/" -i rju-lxvst.cpp
}
build() {
cd "$srcdir/$_pkgname/cmd"
make all
cd ${srcdir}/${_pkgname}/md
for i in *.md ; do asciidoc $i; done
}
package () {
mkdir -p ${pkgdir}/usr/{bin,include,share/rju}
cd ${_pkgname}/cmd
make install prefix=${pkgdir}/usr
cd ../md
cp -r *.html announce/ ${pkgdir}/usr/share/rju
install -Dm644 "$srcdir/jack.plumbing" "${pkgdir}/usr/share/rju/rju.plumbing.example"
}
# vim: ts=2 sw=2 et:
|