summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a75f3e79565325ee1469fa74fe2fe63a03c9382 (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=r1956.de477d1b
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')
conflicts=('yoshimi')
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}
}