blob: c4b2f0885327291f6d86784131032ddfe7106219 (
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
|
# Maintainer: Riedler <dev@riedler.wien>
_pkgname=liblsdj
pkgname=${_pkgname}-git
pkgver=2.1.0
pkgrel=1
changelog=CHANGELOG
pkgdesc='Library for working with the LSDj save file format'
arch=('any')
url='https://github.com/stijnfrishert/libLSDJ'
license=('MIT')
provides=('lsdsng-export' 'lsdsng-import' 'lsdj-mono' 'lsdj-wavetable-import')
depends=()
makedepends=('cmake' 'git')
source=("$_pkgname::git+https://github.com/stijnfrishert/libLSDJ.git"
"Catch2::git+https://github.com/catchorg/Catch2.git")
sha256sums=('SKIP' 'SKIP')
prepare() {
cd $_pkgname
echo "init"
git submodule init dependency/Catch2
echo "url"
git config submodule.Catch2.url "$srcdir/Catch2"
echo "update"
git submodule update --init
echo "rest"
mkdir build -p
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
echo "victory!"
}
build() {
cd $_pkgname
cmake --build build --config Release
}
package() {
cd $_pkgname
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
cd build
install -Dm755 "./lsdsng_export/lsdsng-export" \
-t "$pkgdir/usr/bin/"
install -Dm755 "./lsdsng_import/lsdsng-import" \
-t "$pkgdir/usr/bin/"
install -Dm755 "./lsdj_wavetable_import/lsdj-wavetable-import" \
-t "$pkgdir/usr/bin/"
install -Dm755 "./lsdj_mono/lsdj-mono" \
-t "$pkgdir/usr/bin/"
install -Dm755 "./liblsdj/liblsdj.a" \
-t "$pkgdir/usr/lib/"
}
check() {
$_pkgname/build/liblsdj/test/test
}
|