summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0bae681c17959bf799519ae8a73c09d591d7c860 (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
# gandalf3 <gandalf3@blendermonkey.com>

pkgname=swami
pkgver=2.2.0
pkgrel=1
pkgdesc='A SoundFont editor'
arch=('x86_64')
url='http://www.swamiproject.org'
license=('GPL2')
depends=('gtk2' 'fftw' 'audiofile' 'fluidsynth' 'libinstpatch')
makedepends=('cmake')
optdepends=('libpng')
source=("https://github.com/swami/${pkgname}/archive/v${pkgver}.tar.gz" 'cwd.patch')
sha1sums=('218685dec42d2db2dffa77a28633096d29458950'
          'c8f475348486f7664deb1d47afa90039d31529e8')

prepare() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	patch src/swamigui/main.c < ../cwd.patch
}

build() {
	cd "${pkgname}-${pkgver}"
	cmake -D CMAKE_INSTALL_PREFIX=/usr .
	make
}

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