aboutsummaryrefslogtreecommitdiff
path: root/audio/ardour/ardour.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2023-12-10 19:52:11 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-12-16 08:56:12 +0700
commit0921bd1296b55ca3aea40ddd31e26b2bcbe84e24 (patch)
tree6a51cd51456fd22761eea1e4e0d0ccdf50b21d2d /audio/ardour/ardour.SlackBuild
parent90d0f4d22c680036264d037597bd22708b982652 (diff)
audio/ardour: Updated for version 8.1.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/ardour/ardour.SlackBuild')
-rw-r--r--audio/ardour/ardour.SlackBuild24
1 files changed, 13 insertions, 11 deletions
diff --git a/audio/ardour/ardour.SlackBuild b/audio/ardour/ardour.SlackBuild
index a7097f2213e7f..63f72ba036cc0 100644
--- a/audio/ardour/ardour.SlackBuild
+++ b/audio/ardour/ardour.SlackBuild
@@ -29,8 +29,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ardour
-VERSION=${VERSION:-7.5.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-8.1.0}
+MAJVER=$(echo $VERSION | cut -d. -f1)
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,6 +88,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
+# Thanks to fourtysixandtwo for pointing at this upstream pull request!
+patch -p1 < $CWD/libxml2-2.12-fix.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./waf configure \
@@ -100,9 +104,7 @@ CXXFLAGS="$SLKCFLAGS" \
--optimize \
--freedesktop \
--no-phone-home \
- --nls \
- --ptformat \
- --lxvst
+ --ptformat
./waf build
@@ -112,19 +114,19 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/{appdata,applications,icons}
-cp build/gtk2_ardour/ardour7.appdata.xml $PKG/usr/share/appdata/
+cp build/gtk2_ardour/ardour$MAJVER.appdata.xml $PKG/usr/share/appdata/
# 20230703 bkw: desktop-file-validate complained about Categories.
# The desktop menu spec:
# https://specifications.freedesktop.org/menu-spec/latest/apa.html
# ...has no such category as AudioEditing.
-sed 's,AudioEditing;,X-&,' build/gtk2_ardour/ardour7.desktop \
- > $PKG/usr/share/applications/ardour7.desktop
+sed 's,AudioEditing;,X-&,' build/gtk2_ardour/ardour$MAJVER.desktop \
+ > $PKG/usr/share/applications/ardour$MAJVER.desktop
for isize in 16 22 32 48 ; do
mkdir -p $PKG/usr/share/icons/hicolor/${isize}x${isize}/apps
cp gtk2_ardour/icons/application-x-ardour_${isize}px.png \
- $PKG/usr/share/icons/hicolor/${isize}x${isize}/apps/ardour7.png
+ $PKG/usr/share/icons/hicolor/${isize}x${isize}/apps/ardour$MAJVER.png
done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -137,10 +139,10 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Let's not clobber config files
-cd $PKG/etc/ardour7
+cd $PKG/etc/ardour$MAJVER
for i in $(find . -type f) ; do
mv $i $i.new
- echo "config etc/ardour7/$i.new" >> $PKG/install/doinst.sh
+ echo "config etc/ardour$MAJVER/$i.new" >> $PKG/install/doinst.sh
done
cd -