blob: 96b7eb536e65010ac3927969153a71ab373997f5 (
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
60
61
62
63
64
65
|
# Maintainer: Pavle <xpio at tut.by>
# Contributor: rbrt
# Contributor: Simon Perry <aur [at] sanxion [dot] net>
pkgname=klystrack-git
pkgver=0.10.0.alpha3.r21.gd037cfb
pkgrel=1
pkgdesc="Tracker for making chiptune-like music on a modern computer (aka klystrack-plus)"
arch=('i686' 'x86_64')
url="http://kometbomb.github.io/klystrack/"
license=('MIT')
groups=()
depends=('sdl2_image' 'sdl2_mixer')
makedepends=('git')
provides=('klystrack')
conflicts=('klystrack')
source=('git+https://github.com/LTVA1/klystrack' 'git+https://github.com/LTVA1/klystron')
md5sums=('SKIP' 'SKIP')
_gitname='klystrack'
_categories='AudioVideo;Audio;X-Synthesis'
pkgver() {
cd "$_gitname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
# klystron is submodule of klystrack
cd "$srcdir/$_gitname" #i.e. klystrack
git submodule init
git config submodule.klystron.url "$srcdir/klystron"
git -c protocol.file.allow=always submodule update
# path to default song
sed -i 's/Default.kt/\/usr\/share\/klystrack\/Default\.kt/' "$srcdir/klystrack/src/main.c"
# Uncomment the following line if you have trouble compiling
# See https://github.com/kometbomb/klystrack/issues/292
#sed -i '/CFLAGS :=/ a CFLAGS += -fcommon' Makefile
}
build() {
cd "$srcdir/$_gitname"
make
}
package() {
mkdir "$pkgdir/usr"
cd "$pkgdir/usr"
mkdir -p bin share/klystrack share/applications share/pixmaps share/licenses/klystrack lib/klystrack share/man/man1
cd "$srcdir/$_gitname"
install bin.debug/klystrack "$pkgdir/usr/bin/"
cp -r res/ key/ "$pkgdir/usr/lib/klystrack/"
cp -r examples/ "$pkgdir/usr/share/klystrack/"
gzip -ck doc/klystrack.1 > "$pkgdir/usr/share/man/man1/klystrack.1.gz"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/klystrack/"
install -Dm644 doc/Default.kt "$pkgdir/usr/share/klystrack/"
install -Dm644 "linux/klystrack.desktop" "$pkgdir/usr/share/applications/klystrack.desktop"
install -Dm644 "icon/256x256.png" "$pkgdir/usr/share/pixmaps/klystrack.png"
}
# vim:set ts=2 sw=2 et:
|