summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fffa0189213c30f065dc4c1c8116b0c24a4dd61 (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
# Maintainer: Guilherme Felipe <guilhermefelipecgs@gmail.com>

pkgname=zytrax-git
pkgver=1.0.alpha.r13.gd60cc42
pkgrel=1
pkgdesc="Easy to use, tracker-inspired music sequencer."
arch=('i686' 'x86_64')
url="http://zytrax.org/"
license=('MIT')
makedepends=('scons' 'gcc' 'git')
depends=('gtkmm3' 'libpulse')
optdepends=('vst-plugins: Package group for vst plugins')
source=(
    "$pkgname::git+https://github.com/reduz/zytrax.git"
    "zytrax.desktop"
    "base64.patch"
)
sha256sums=(
    'SKIP'
    '5058a5b3c2070e7d59db8cb8f14fd45538718a80e79fc8f4de4d62c1252521e8'
    'c785b9ddec09ca785a2410f2c7aa6aba8122ae387c3613de99848598425de2d5'
)

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/-/.r/;s/-/./'
}

prepare() {
    cd "$srcdir/$pkgname"
    git apply "$srcdir/base64.patch"
}

build() {
    cd "$srcdir/$pkgname"
    scons -j$(nproc)
}

package() {
    cd "$srcdir"
    install -Dm644 zytrax.desktop "$pkgdir/usr/share/applications/zytrax.desktop"
    cd "$srcdir/$pkgname"
    install -Dm755 bin/zytrax "$pkgdir/usr/bin/zytrax"
    install -Dm644 zytrax_logo.png "$pkgdir/usr/share/pixmaps/zytrax.png"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}