diff options
Diffstat (limited to 'audio/drumkv1/drumkv1.SlackBuild')
-rw-r--r-- | audio/drumkv1/drumkv1.SlackBuild | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/audio/drumkv1/drumkv1.SlackBuild b/audio/drumkv1/drumkv1.SlackBuild index 6070bef5ae24..eb35fae37913 100644 --- a/audio/drumkv1/drumkv1.SlackBuild +++ b/audio/drumkv1/drumkv1.SlackBuild @@ -6,6 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230108 bkw: update for 0.9.28 # 20211205 bkw: update for 0.9.23 # 20201106 bkw: update for 0.9.18 # 20200114 bkw: update for 0.9.12 @@ -23,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=drumkv1 -VERSION=${VERSION:-0.9.23} +VERSION=${VERSION:-0.9.28} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -73,23 +74,24 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ export PATH=/usr/lib$LIBDIRSUFFIX/qt5/bin:$PATH -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 +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. +# 20230108 bkw: TODO: find out which is the right place. Various SBo +# packages put .xml files in one or the other dir. [ -d $PKG/usr/share/metainfo ] && \ mv $PKG/usr/share/metainfo $PKG/usr/share/appdata @@ -108,7 +110,7 @@ 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 |