diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-11-07 20:48:33 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-11-12 00:39:40 +0700 |
commit | 4814b45bce0bd127f82e29bf86f11b42ee9051d3 (patch) | |
tree | 64b8db7c0c636221f18ec7d21b5281ab58a552e4 /multimedia/qsampler | |
parent | ad2ca4c33d2989b83d39e2d6bb54f3f7722a3593 (diff) |
multimedia/qsampler: Updated for version 0.9.4, switch to cmake.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/qsampler')
-rw-r--r-- | multimedia/qsampler/qsampler.SlackBuild | 53 | ||||
-rw-r--r-- | multimedia/qsampler/qsampler.info | 6 |
2 files changed, 30 insertions, 29 deletions
diff --git a/multimedia/qsampler/qsampler.SlackBuild b/multimedia/qsampler/qsampler.SlackBuild index eaf9dddc3dc1a..d10c715b3860a 100644 --- a/multimedia/qsampler/qsampler.SlackBuild +++ b/multimedia/qsampler/qsampler.SlackBuild @@ -5,14 +5,14 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qsampler -VERSION=${VERSION:-0.2.2.511svn} +VERSION=${VERSION:-0.9.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -30,8 +30,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -51,36 +51,37 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-svn +cd $PRGNAM-$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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; -make -f Makefile.svn +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_MANDIR=man \ + -DCMAKE_BUILD_TYPE='None' \ + -Wno-dev \ + .. + make + make install DESTDIR=$PKG +cd .. -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 -j1 -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +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 $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL TODO README TRANSLATORS \ + AUTHORS COPYING ChangeLog README TODO TRANSLATORS \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/multimedia/qsampler/qsampler.info b/multimedia/qsampler/qsampler.info index 62a558355e83b..6e8bbdd955b1d 100644 --- a/multimedia/qsampler/qsampler.info +++ b/multimedia/qsampler/qsampler.info @@ -1,8 +1,8 @@ PRGNAM="qsampler" -VERSION="0.2.2.511svn" +VERSION="0.9.4" HOMEPAGE="http://linuxsampler.org" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/qsampler-0.2.2.511svn.tar.gz" -MD5SUM="22d9151b4635019d2da3e96be675af5e" +DOWNLOAD="https://downloads.sourceforge.net/qsampler/qsampler-0.9.4.tar.gz" +MD5SUM="a1f67150f4f6a5771926dc0d4783f29d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="liblscp linuxsampler" |