diff options
Diffstat (limited to 'audio/synthv1/synthv1.SlackBuild')
-rw-r--r-- | audio/synthv1/synthv1.SlackBuild | 74 |
1 files changed, 51 insertions, 23 deletions
diff --git a/audio/synthv1/synthv1.SlackBuild b/audio/synthv1/synthv1.SlackBuild index e35806730e..e29d237e0b 100644 --- a/audio/synthv1/synthv1.SlackBuild +++ b/audio/synthv1/synthv1.SlackBuild @@ -1,11 +1,18 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for synthv1 -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230629 bkw: update for v0.9.31 +# 20230109 bkw: update for v0.9.28 +# 20211205 bkw: update for v0.9.23 +# 20201106 bkw: update for v0.9.18 +# 20200114 bkw: update for v0.9.12 +# 20191210 bkw: update for v0.9.11, document optional liblo dep, have slack-desc +# tell user whether or not optional deps are included. # 20181216 bkw: updated for v0.9.4, qt5 now required # 20180828 bkw: updated for v0.9.2 # 20180702 bkw: updated for v0.9.1, install French man page correctly. @@ -17,10 +24,13 @@ # not sure how I missed this the first time around... # 20170324 bkw: updated for v0.8.1 +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=synthv1 -VERSION=${VERSION:-0.9.4} +VERSION=${VERSION:-0.9.31} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -30,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -61,20 +75,24 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -LDFLAGS="-Wl,-s" \ -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux - -make -make install DESTDIR=$PKG +# This thing can't be told to use qmake-qt5, and keeps choking on +# /usr/bin/qmake. The --with-qt option doesn't help, only putting +# qt5's bin/ before /usr/bin in $PATH will do. +export PATH=/usr/lib$LIBDIRSUFFIX/qt5/bin:$PATH + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make VERBOSE=1 + make install/strip DESTDIR=$PKG +cd .. + +gzip -9 $PKG/usr/man/man1/* $PKG/usr/man/fr/man1/* # I dunno what this is actually for, but as of 0.8.5 it got moved. Move # it back to where it belongs, for Slack 14.2. @@ -111,8 +129,8 @@ make install DESTDIR=$PKG # block!) and ship only the UTF-8 man page. For now, include both, # to be -current-friendly. -mkdir -p $PKG/usr/man/fr/man1 $PKG/usr/man/fr.UTF-8/man1 -mv $PKG/usr/man/man1/$PRGNAM.fr.1.gz $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz +mkdir -p $PKG/usr/man/fr.UTF-8/man1 +mv $PKG/usr/man/fr/man1/$PRGNAM.1.gz $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz zcat $PKG/usr/man/fr.UTF-8/man1/$PRGNAM.1.gz | \ iconv -f UTF-8 -t ISO-8859-1 | \ gzip -9c \ @@ -125,11 +143,21 @@ for i in man1 fr/man1 fr.UTF-8/man1; do done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a ChangeLog README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +LIBLO=no +LV2=no +ldd $PKG/usr/bin/${PRGNAM}_jack | grep -q liblo && LIBLO=yes +if [ -e $PKG/usr/lib$LIBDIRSUFFIX/lv2/$PRGNAM.lv2 ]; then + LV2=yes + # 20230629 bkw: just a nitpick, but shared libs are supposed to be +x: + chmod +x $PKG/usr/lib$LIBDIRSUFFIX/lv2/$PRGNAM.lv2/*.so +fi + mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +sed -e "s,@LIBLO@,$LIBLO," -e "s,@LV2@,$LV2," $CWD/slack-desc \ + > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh if [ "${SETCAP:-yes}" = "yes" ]; then @@ -139,4 +167,4 @@ if [ "${SETCAP:-yes}" = "yes" ]; then fi cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |