audio/ardour: Make .desktop file validate.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
137af17762
commit
b24d78348a
|
@ -23,11 +23,14 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20230703 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||
# - make .desktop file validate.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=ardour
|
||||
VERSION=${VERSION:-7.5.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -80,9 +83,9 @@ cd Ardour-$VERSION
|
|||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
-o -perm 511 \) -exec chmod 755 {} + -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
@ -110,7 +113,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
|||
|
||||
mkdir -p $PKG/usr/share/{appdata,applications,icons}
|
||||
cp build/gtk2_ardour/ardour7.appdata.xml $PKG/usr/share/appdata/
|
||||
cp build/gtk2_ardour/ardour7.desktop $PKG/usr/share/applications/
|
||||
|
||||
# 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
|
||||
|
||||
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 \
|
||||
|
|
Loading…
Reference in New Issue