blob: a07e3082ff5858b4b2e9631849c0bc0062b19837 (
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: Jean Pierre Cimalando <jp-dev@inbox.ru>
pkgname=sysexxer-ng-git
pkgver=r30.23dfc26
pkgrel=1
pkgdesc="A universal tool to exchange MIDI system-exclusive data"
arch=('i686' 'x86_64')
url="https://github.com/linuxmao-org/sysexxer-ng"
license=('Boost')
groups=()
depends=('fltk' 'jack' 'shared-mime-info')
makedepends=('git' 'cmake' 'gettext')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('sysexxer-ng::git+https://github.com/linuxmao-org/sysexxer-ng.git'
'rtmidi::git+https://github.com/Wohlstand/rtmidi.git'
'simpleini::git+https://github.com/jpcima/simpleini.git'
'fmt::git+https://github.com/fmtlib/fmt.git')
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
noextract=()
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
for submodule in thirdparty/rtmidi thirdparty/simpleini; do
git config "submodule.${submodule}.url" "${srcdir}/`basename "${submodule}"`"
done
git submodule update
cd thirdparty/fmidi
for submodule in thirdparty/fmt; do
git config "submodule.${submodule}.url" "${srcdir}/`basename "${submodule}"`"
done
git submodule update
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make -C build DESTDIR="$pkgdir/" install
}
|