author | David Runge
<dvzrv@archlinux.org> 2018-02-08 18:09:22 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2018-02-08 18:09:22 UTC |
parent | 508885d79d3c13cf158333d93aaf74b4e4acdc06 |
PKGBUILD | +30 | -35 |
ardour.desktop | +0 | -9 |
diff --git a/PKGBUILD b/PKGBUILD index e24967e..31dade1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,54 +1,49 @@ +# Maintainer: David Runge <dave@sleepmap.de> # Maintainer: Ray Rashif <schiv@archlinux.org> # Contributor: SpepS <dreamspepser at yahoo dot it> -# Contributor: see .contrib +_name=Ardour pkgname=ardour pkgver=5.12 -pkgrel=2 +pkgrel=3 pkgdesc="Professional-grade digital audio workstation" arch=('x86_64') -url="http://ardour.org/" +url="https://ardour.org/" license=('GPL') -depends=('liblrdf' 'liblo' 'lilv' 'suil' 'taglib' - 'aubio' 'rubberband' 'gtkmm') -makedepends=('git' 'python2' 'boost' 'cppunit' 'doxygen' 'graphviz') +depends=('liblrdf' 'libarchive' 'liblo' 'lilv' 'suil' 'taglib' 'aubio' +'rubberband' 'gtkmm') +makedepends=('boost' 'cppunit' 'git' 'itstool' 'python2') optdepends=('xjadeo: video monitoring' 'harvid: video timeline') -source=("$pkgname-$pkgver::git+https://github.com/${pkgname^}/$pkgname.git#tag=$pkgver" - "$pkgname.desktop") -md5sums=('SKIP' - 'dc653c227bc34aa6c729a4c2149308a7') - -prepare() { - cd "$srcdir/$pkgname-$pkgver" - - # python2 fix - sed -i 's/python ${SRC}/python2 ${SRC}/' libs/pbd/wscript -} +source=("${pkgname}-${pkgver}::git+https://github.com/${pkgname}/${pkgname}.git#tag=${pkgver}") +sha512sums=('SKIP') build() { - cd "$srcdir/$pkgname-$pkgver" - + cd "${pkgname}-${pkgver}" python2 waf configure --prefix=/usr \ - --configdir=/etc \ - --with-backends="jack,alsa" \ - --libjack=weak \ - --optimize \ - --docs \ - --cxx11 \ - --no-phone-home - - python2 waf build $MAKEFLAGS + --configdir=/etc \ + --with-backends="jack,alsa,dummy" \ + --libjack=weak \ + --optimize \ + --cxx11 \ + --freedesktop \ + --ptformat \ + --no-phone-home + python2 waf build } package() { - cd "$srcdir/$pkgname-$pkgver" - - python2 waf install --destdir="$pkgdir" - - # install some freedesktop.org compatibility - install -Dm644 "$srcdir/$pkgname.desktop" \ - "$pkgdir/usr/share/applications/$pkgname.desktop" + cd "${pkgname}-${pkgver}" + python2 waf install --destdir="${pkgdir}" + # xdg integration + install -vDm644 "build/gtk2_${pkgname}/${pkgname}.xml" \ + "${pkgdir}/usr/share/mime/application/x-${pkgname}.xml" + install -vDm644 "build/gtk2_${pkgname}/${pkgname}${pkgver%%.*}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + for size in 16 22 32 48 256 512; do + install -vDm644 "gtk2_${pkgname}/resources/${_name}-icon_${size}px.png" \ + "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${pkgname}${pkgver%%.*}.png" + done } # vim:set ts=2 sw=2 et: diff --git a/ardour.desktop b/ardour.desktop deleted file mode 100644 index a510ccb..0000000 --- a/ardour.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=Ardour 5 -Comment=Multitrack hard disk recorder -Exec=ardour5 -Icon=/usr/share/ardour5/resources/Ardour-icon_256px.png -Terminal=false -Type=Application -X-MultipleArgs=false -Categories=GTK;Audio;AudioVideoEditing;AudioVideo;Video;