summaryrefslogtreecommitdiff
path: root/community/canorus/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/canorus/PKGBUILD')
-rw-r--r--community/canorus/PKGBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/community/canorus/PKGBUILD b/community/canorus/PKGBUILD
index c2a37de26..4767b9030 100644
--- a/community/canorus/PKGBUILD
+++ b/community/canorus/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 59873 2011-12-01 13:49:19Z spupykin $
+# $Id: PKGBUILD 85336 2013-03-01 10:28:57Z andrea $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
# Contributor: Coenraad van der Westhuizen <chwesthuizen@gmail.com>
@@ -6,12 +6,12 @@
pkgname=canorus
pkgver=0.7.R1002
-pkgrel=4
+pkgrel=5
pkgdesc="A free music score editor"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.canorus.org/"
license=('GPL')
-depends=('qt' 'alsa-lib' 'python2' 'swig')
+depends=('qt4' 'alsa-lib' 'python2' 'swig' 'zlib')
makedepends=('cmake')
options=('strip')
source=(http://download.berlios.de/$pkgname/$pkgname\_$pkgver\_source.tar.bz2
@@ -21,13 +21,16 @@ md5sums=('5575b7c54633056a463177579a390318'
build() {
cd $srcdir/$pkgname-$pkgver
- patch -Np1 -i ${srcdir}/0006-Add-lz-and-lpthread-to-linker-flags.patch
- export QTDIR=/usr
+ source /etc/profile.d/qt4.sh
+ export LDFLAGS="-lz -lpthread"
cmake . -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
-DDEFAULT_DATA_DIR="/usr/share/canorus" \
-DNO_SWIG=ON
- make install
+}
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ 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}