PKGBUILDs/community/a2jmidid/PKGBUILD
2016-01-06 03:07:23 +00:00

44 lines
1 KiB
Bash

# $Id$
# Maintainer : speps <speps at aur dot archlinux dot org>
# Contributor: Jiyunatori <tori@0xc29.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch for AArch64
pkgname=a2jmidid
pkgver=8
pkgrel=1
pkgdesc="A daemon for exposing legacy ALSA sequencer applications in JACK MIDI system."
arch=('i686' 'x86_64')
url="http://home.gna.org/$pkgname/"
license=('GPL')
depends=('jack' 'python2-dbus')
source=("http://download.gna.org/$pkgname/$pkgname-$pkgver.tar.bz2"
"$pkgname-dso-pthread.patch"
'a2jmidid-aarch64.patch')
md5sums=('9cf4edbc3ad2ddeeaf6c8c1791ff3ddd'
'4b15e485301aee48371844cb01689ad2'
'bff91ac5a995f4faf9acd280b7f949b4')
prepare() {
cd $pkgname-$pkgver
# DSO link patch
patch -p1 -i ../$pkgname-dso-pthread.patch
# python2 shebang
sed -i 's/python/&2/' a2j_control
patch -p1 -i ../a2jmidid-aarch64.patch
}
build() {
cd $pkgname-$pkgver
python2 waf configure --prefix=/usr
python2 waf
}
package() {
cd $pkgname-$pkgver
python2 waf install --destdir="$pkgdir/"
}