Username: Password: Remember me
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves[at]gmail[dot]com>
 
pkgname=drumstick
pkgver=0.5.0
pkgrel=1
pkgdesc="C++ wrapper around the ALSA library sequencer interface, using Qt4 objects, idioms and style."
arch=('i686' 'x86_64')
url="http://drumstick.sourceforge.net/"
license="GPL3"
depends=('alsa-lib>=1.0' 'hicolor-icon-theme' 'qt>=4.4' 'shared-mime-info>=0.30')
makedepends=('automoc4' 'cmake>=2.6' 'docbook-xml' 'docbook-xsl' 'doxygen')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://downloads.sourceforge.net/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
md5sums=('d2052edbae3dee6ea4c920d5c6095faa')
 
build() {
  cd $srcdir/$pkgname-$pkgver
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        .. || return 1
  make || return 1
}
 
package() {
  cd $srcdir/$pkgname-$pkgver/build
  make DESTDIR=$pkgdir install
 
  # Fix for x86_64:
  [ ${CARCH} = 'x86_64' ] && mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib
}