summaryrefslogtreecommitdiff
path: root/community/canorus/PKGBUILD
blob: c2a37de26e5f484da5a0164c0679aa252a615e97 (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
# $Id: PKGBUILD 59873 2011-12-01 13:49:19Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
# Contributor: Coenraad van der Westhuizen <chwesthuizen@gmail.com>
# Contributor: hm_b <holger (at) music-nerds (dot) net>

pkgname=canorus
pkgver=0.7.R1002
pkgrel=4
pkgdesc="A free music score editor"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.canorus.org/"
license=('GPL')
depends=('qt' 'alsa-lib' 'python2' 'swig')
makedepends=('cmake')
options=('strip')
source=(http://download.berlios.de/$pkgname/$pkgname\_$pkgver\_source.tar.bz2
	0006-Add-lz-and-lpthread-to-linker-flags.patch)
md5sums=('5575b7c54633056a463177579a390318'
	 '99e545a1da44006bc5e436728edfda15')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 -i ${srcdir}/0006-Add-lz-and-lpthread-to-linker-flags.patch
  export QTDIR=/usr
  cmake . -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
	-DDEFAULT_DATA_DIR="/usr/share/canorus" \
	-DNO_SWIG=ON
  make install

  install -d $pkgdir/usr/share/{applications,pixmaps}
  cp canorus.desktop $pkgdir/usr/share/applications
  cp $pkgdir/usr/share/{canorus/images/clogosm.png,pixmaps/canorus.png}
}