gtk/ardour/PKGBUILD
2018-03-26 09:48:27 +01:00

63 lines
2.0 KiB
Bash

pkgname=ardour
pkgver=5.12
pkgrel=2
pkgdesc="Professional-grade digital audio workstation"
arch=('x86_64')
url="http://ardour.org/"
license=('GPL')
depends=('liblrdf' 'liblo' 'lilv' 'gtkmm' 'aubio' 'suil' 'taglib' 'rubberband' 'libarchive')
makedepends=('git' 'python2' 'boost' 'cppunit' 'doxygen' 'graphviz' 'itstool')
install=$pkgname.install
source=(${pkgname}-${pkgver}::"git://git.ardour.org/${pkgname}/${pkgname}.git#tag=${pkgver}")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# python2 fix
sed -i 's/python ${SRC}/python2 ${SRC}/' libs/pbd/wscript
}
build() {
cd "$srcdir/$pkgname-$pkgver"
python2 waf configure --prefix=/usr \
--configdir=/etc \
--with-backends="jack,alsa,dummy" \
--libjack=weak \
--optimize \
--docs \
--cxx11 \
--no-phone-home \
--versioned \
--freedesktop \
--ptformat
python2 waf build $MAKEFLAGS
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 waf install --destdir="$pkgdir"
# install some freedesktop.org compatibility
install -Dm644 "build/gtk2_ardour/${pkgname}5.desktop" \
"$pkgdir/usr/share/applications/${pkgname}5.desktop"
# install mime type
install -Dm644 "build/gtk2_ardour/${pkgname}.xml" \
"$pkgdir/usr/share/mime/application/${pkgname}.xml"
# the upstream install icons to bundled place, we need it system-wide
for px in 16 22 32 48; do
install -dm755 $pkgdir/usr/share/icons/hicolor/${px}x${px}/mimetypes
ln -s $pkgdir/usr/share/${pkgname}5/icons/application-x-ardour_${px}px.png \
$pkgdir/usr/share/icons/hicolor/${px}x${px}/mimetypes/application-x-ardour.png
done
# the main icon
for px in 16 22 32 48 256 512; do
install -dm755 $pkgdir/usr/share/icons/hicolor/${px}x${px}/apps
ln -s $pkgdir/usr/share/${pkgname}5/resources/Ardour-icon_${px}px.png \
$pkgdir/usr/share/icons/hicolor/${px}x${px}/apps/ardour5.png
done
}