PKGBUILDs/community/drumkv1/PKGBUILD
2014-04-11 19:34:16 +00:00

44 lines
1,023 B
Bash

# $Id$
# Maintainer: speps <speps at aur dot archlinux dot org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build with -fPIE for ARM
pkgname=drumkv1
pkgver=0.4.1
pkgrel=1
pkgdesc="An old-school drum-kit sampler"
arch=(i686 x86_64)
url="http://$pkgname.sourceforge.net/$pkgname-index.html"
license=('GPL')
groups=('lv2-plugins')
depends=('jack' 'liblo' 'lv2' 'qt5-base'
'desktop-file-utils' 'hicolor-icon-theme' 'shared-mime-info')
install="$pkgname.install"
source=("http://download.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('48b092e94a4fbf8e8e51bd02d39ed348')
prepare() {
cd $pkgname-$pkgver
# x86_64 lib path fix
sed -i "s/lib64/lib/" src/src_lv2{,ui}.pro
# i686 -reduce-relocations
if [[ $CARCH = i686 || $CARCH = arm || $CARCH = armv6h || $CARCH = armv7h ]]; then
export CXXFLAGS+=" -fPIE"
fi
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et: