summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb50ebceb91291c2139c629a3ac7d7da28428a3a (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
# Maintainer: David Adler <d.adler@posteo.de>
# Contributor: Albert Graef <aggraef at gmail dot com>
# Contributor: David Runge <dave@sleepmap.de>

_pkgname=yoshimi
pkgname=$_pkgname-git
pkgver=r3849.8547f953
pkgrel=1
pkgdesc="a fork of the ZynAddSubFX software systhesizer"
arch=('x86_64')
url="https://yoshimi.github.io/"
license=('GPL')
depends=('jack' 'fltk' 'fftw' 'mxml')
makedepends=('cmake' 'lv2' 'mesa' 'git')
provides=('yoshimi' 'yoshimi-data' 'yoshimi-docs' 'yoshimi-lv2' 'yoshimi-standalone')
conflicts=('yoshimi' 'yoshimi-data' 'yoshimi-docs' 'yoshimi-lv2' 'yoshimi-standalone')
source=("git+https://github.com/Yoshimi/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
    cd "$_pkgname/src"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


build() {
    cd "$_pkgname/src" 
    cmake -DCMAKE_INSTALL_PREFIX='/usr' \
        -DCMAKE_INSTALL_DATAROOTDIR='/usr/share' \
        -DCMAKE_INSTALL_LIBDIR='/usr/lib' .
    make
}

package() {
    cd "$_pkgname/src" 
    make DESTDIR="$pkgdir" install
    install -t "${pkgdir}/usr/share/doc/${_pkgname}/" \
        -vDm 644 ../{Changelog,Dependencies,README.txt,Yoshimi_Helpers}
}