diff options
author | Samuel Young <samyoung12788@gmail.com> | 2024-02-13 09:57:54 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-13 10:13:39 +0700 |
commit | f9474c34ae3e5666aaff41ad8a2a74d4685dff3e (patch) | |
tree | 933dc791ffd1a58a7414dae2b02e4bc1993f765a /audio/musikcube | |
parent | 81abef3ff78d26265643e4e0d42d87670eac92fa (diff) |
audio/musikcube: Use asio as submodule.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/musikcube')
-rw-r--r-- | audio/musikcube/fix-install-locations.patch | 1 | ||||
-rw-r--r-- | audio/musikcube/musikcube.SlackBuild | 9 | ||||
-rw-r--r-- | audio/musikcube/musikcube.info | 8 |
3 files changed, 11 insertions, 7 deletions
diff --git a/audio/musikcube/fix-install-locations.patch b/audio/musikcube/fix-install-locations.patch index eaa012dbe128..091a90c03150 100644 --- a/audio/musikcube/fix-install-locations.patch +++ b/audio/musikcube/fix-install-locations.patch @@ -1,3 +1,4 @@ +Patch taken from Void Linux xbps source repository. Currently all ELF files (binaries and libraries), get installed to /usr/share/musikcube. This patch moves all those files to their normal locations and fixes the code to expect that diff --git a/audio/musikcube/musikcube.SlackBuild b/audio/musikcube/musikcube.SlackBuild index 4800f59253d5..544520a6679d 100644 --- a/audio/musikcube/musikcube.SlackBuild +++ b/audio/musikcube/musikcube.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for musikcube -# Copyright 2023 Samuel Young, MO, USA +# Copyright 2023-2024 Samuel Young, MO, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,14 +24,12 @@ # 20230630 bkw: Modified by SlackBuilds.org, BUILD=2: # - +x permission for shared libs -# TODO: /usr/share isn't supposed to contain architecture-dependent code. -# the binaries and plugins shouldn't be in /usr/share. they should be -# moved to e.g. /usr/lib$LIBDIRSUFFIX/musikcube/ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=musikcube VERSION=${VERSION:-3.0.2} +ASIO=${ASIO:-f693a3eb7fe72a5f19b975289afc4f437d373d9c} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -52,6 +50,7 @@ fi TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +DEPS=$TMP/$PRGNAM-$VERSION/src/3rdparty if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" @@ -74,6 +73,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/asio-$ASIO.tar.gz -C $DEPS/asio --strip-components 1 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -82,6 +82,7 @@ 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 {} + +# Install .so files to /usr/lib$LIBDIRSUFFIX instead of /usr/share cp $CWD/fix-install-locations.patch . sed -i "s/lib\//lib$LIBDIRSUFFIX\//" fix-install-locations.patch echo "Apply fix-install-locations.patch" diff --git a/audio/musikcube/musikcube.info b/audio/musikcube/musikcube.info index 8081378b6d59..064fba5f70df 100644 --- a/audio/musikcube/musikcube.info +++ b/audio/musikcube/musikcube.info @@ -1,10 +1,12 @@ PRGNAM="musikcube" VERSION="3.0.2" HOMEPAGE="https://musikcube.com" -DOWNLOAD="https://github.com/clangen/musikcube/archive/3.0.2/musikcube-3.0.2.tar.gz" -MD5SUM="a8618ebc15424a559497bc6cd287d207" +DOWNLOAD="https://github.com/clangen/musikcube/archive/3.0.2/musikcube-3.0.2.tar.gz \ + https://github.com/chriskohlhoff/asio/archive/f693a3eb7fe72a5f19b975289afc4f437d373d9c/asio-f693a3eb7fe72a5f19b975289afc4f437d373d9c.tar.gz" +MD5SUM="a8618ebc15424a559497bc6cd287d207 \ + 343e9434cad3006dc74ba13bdf84445a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="asio libev libmicrohttpd" +REQUIRES="libev libmicrohttpd" MAINTAINER="Samuel Young" EMAIL="samyoung12788@gmail.com" |