desktop/vmpk/PKGBUILD
2018-12-30 18:45:33 +01:00

43 lines
1.1 KiB
Bash

pkgname=vmpk
pkgver=0.7.1
epoch=1
_pkgver=0.7.1
pkgrel=1
pkgdesc="MIDI event generator and receiver"
arch=('x86_64')
url="http://sourceforge.net/projects/vmpk/"
depends=('qt5-x11extras' 'drumstick')
makedepends=('cmake' 'docbook-xsl' 'qt5-tools')
optdepends=('soundfont-fluidr3: for MIDI sound'
'soundfont-personalcopy: for MIDI sound'
'soundfont-unison: for MIDI sound')
license=('GPL3')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$_pkgver/$pkgname-$pkgver.tar.bz2")
sha256sums=('06d78872b8c23976cd1ed4e66ac6a3bfce93af28ce8db96c2c015cf185ce651b')
prepare() {
cd $pkgname-$pkgver
[ -d b ] || mkdir b
#fix missing translation files
sed -i s!vmpk_gl.ts!! \
translations/CMakeLists.txt
sed -i s!vmpk_sr.ts!! \
translations/CMakeLists.txt
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=release
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
sed -i s!"Categories=AudioVideo;Audio;Midi;Education;Music;"!"Categories=AudioVideo;Music;"! \
${pkgdir}/usr/share/applications/vmpk.desktop
}