summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-12-02 16:23:55 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-10 08:37:33 +0700
commit1c84f934fff768e71585c6aaca2a9666a6a134b8 (patch)
treec609106ea938b119135cb895b74ce06df0b9c0d2 /audio
parent2763b12d65a698da1283ca2fa30766ca3bdd2e0e (diff)
downloadslackbuilds-1c84f934fff768e71585c6aaca2a9666a6a134b8.tar.gz
audio/lv2-mda-metapiano: Fix homepage and download.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r--audio/lv2-mda-metapiano/lv2-mda-metapiano.SlackBuild63
-rw-r--r--audio/lv2-mda-metapiano/lv2-mda-metapiano.info6
2 files changed, 44 insertions, 25 deletions
diff --git a/audio/lv2-mda-metapiano/lv2-mda-metapiano.SlackBuild b/audio/lv2-mda-metapiano/lv2-mda-metapiano.SlackBuild
index 969285b7f5..ffb48e261d 100644
--- a/audio/lv2-mda-metapiano/lv2-mda-metapiano.SlackBuild
+++ b/audio/lv2-mda-metapiano/lv2-mda-metapiano.SlackBuild
@@ -6,11 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211202 bkw: BUILD=2
+# - actually use SLKCFLAGS.
+# - fix homepage.
+# - use upstream's release tarball.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lv2-mda-metapiano
VERSION=${VERSION:-0.0.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +27,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -50,28 +52,45 @@ fi
set -e
+# upstream's tarball and directory name include these:
+GITVER=${GITVER:-1a272c3}
+GITNAM="lv2-mdametapiano"
+TARNAM=$GITNAM-$VERSION-$GITVER
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $TARNAM
+
+# we get 2 different filenames depending on whether the download was
+# done with a client that does or does not respect the Content-disposition
+# HTTP header. Browsers usually do, wget doesn't, unless it's instructed
+# to (via command line option or wgetrc). handle both filenames here.
+# for github, there's a "magic" URL that gives us the same filename
+# either way, but this isn't a github project.
+
+for i in $VERSION $TARNAM; do
+ [ -e $CWD/$i.tar.gz ] && tar xvf $CWD/$i.tar.gz && break
+done
+
+cd $TARNAM
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 \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-INSTALL_DIR=$PKG/usr/lib$LIBDIRSUFFIX/lv2
-make TYPE=mdaPiano
-make TYPE=mdaPiano install INSTALL_DIR=$INSTALL_DIR
-make clean
-make TYPE=mdaEPiano
-make TYPE=mdaEPiano install INSTALL_DIR=$INSTALL_DIR
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# sneak our flags in as "warnings". -Wl,-s strips the libs.
+runmake() {
+ make \
+ TYPE=$1 \
+ WARNINGS="$SLKCFLAGS -Wl,-s"
+ make install \
+ TYPE=$1 \
+ INSTALL_DIR=$PKG/usr/lib$LIBDIRSUFFIX/lv2
+ make clean
+}
+
+runmake mdaPiano
+runmake mdaEPiano
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/audio/lv2-mda-metapiano/lv2-mda-metapiano.info b/audio/lv2-mda-metapiano/lv2-mda-metapiano.info
index 7263a0dd36..824b52f82c 100644
--- a/audio/lv2-mda-metapiano/lv2-mda-metapiano.info
+++ b/audio/lv2-mda-metapiano/lv2-mda-metapiano.info
@@ -1,8 +1,8 @@
PRGNAM="lv2-mda-metapiano"
VERSION="0.0.2"
-HOMEPAGE="https://web.archive.org/web/20160713004948/http://git.elephly.net/gitweb.cgi?p=software/lv2-mdametapiano.git"
-DOWNLOAD="https://slackware.uk/~urchlay/src/lv2-mda-metapiano-0.0.2.tar.gz"
-MD5SUM="2285d3bf306a9ca4a6a0effe1c687ce1"
+HOMEPAGE="https://git.elephly.net/gitweb.cgi?p=software/lv2-mdametapiano.git"
+DOWNLOAD="http://git.elephly.net/software/lv2-mdametapiano.git/archive/0.0.2.tar.gz"
+MD5SUM="7ac55044acbe0d44db2dc689107f2bff"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lvtk"