summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d391e7ac4846a3248366ca675eae53dc4ad6eb1a (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: David Zmick <dpzmick@gmail.com>
pkgname=jack-keyboard
pkgver=2.7.2
pkgrel=1
epoch=0
pkgdesc="Virtual MIDI keyboard that uses JACK MIDI."
arch=('x86_64' 'i686')
url="http://jack-keyboard.sourceforge.net/"
license=('BSD')
depends=('jack' 'gtk2')
makedepends=(cmake)
optdepends=('lash: integrate with lash session management') # TODO what?
options=(makeflags buildflags)
source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=("0d7f8a10592f242374ac028a6b1e8a15")
# validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
    mkdir -p build
    cd build
    if pacman -Qi lash; then
        echo "Not using LASH, package not found"
        LASH_FLAG="True"
    else
        LASH_FLAG="False"
    fi
    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLashEnable=${LASH_FLAG}
}

build() {
	cd "$pkgname-$pkgver"
    make
}

package() {
	cd "$pkgname-$pkgver"
    make install DESTDIR=${pkgdir}
}