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

pkgname=zytrax-git
pkgver=1.0.alpha.r9.g16838b3
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"
)
sha256sums=(
    'SKIP'
    '5058a5b3c2070e7d59db8cb8f14fd45538718a80e79fc8f4de4d62c1252521e8'
)

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

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"
}