aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/milkytracker/milkytracker.SlackBuild50
-rw-r--r--audio/milkytracker/milkytracker.info6
2 files changed, 33 insertions, 23 deletions
diff --git a/audio/milkytracker/milkytracker.SlackBuild b/audio/milkytracker/milkytracker.SlackBuild
index 7f6841c8f1b47..93ad1dd90c89d 100644
--- a/audio/milkytracker/milkytracker.SlackBuild
+++ b/audio/milkytracker/milkytracker.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for MilkyTracker
#
# Copyright 2010 nnyby (machpizza@gmail.com)
-# Copyright 2011-2013 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2011-2019 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=milkytracker
-VERSION=${VERSION:-0.90.86}
+SRCNAM=MilkyTracker
+VERSION=${VERSION:-1.02.00}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -70,27 +71,36 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS -lasound" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --with-jack=${JACK:-no}
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX:FILEPATH="/usr" \
+ -DLIB_SUFFIX:FILEPATH="${LIBDIRSUFFIX}" \
+ -DMAN_INSTALL_DIR:FILEPATH="/usr/man" \
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
+ ..
+ make
+ make install DESTDIR=$PKG
+cd ..
-make
-make install DESTDIR=$PKG
+mkdir -p $PKG/usr/share/{applications,pixmaps,doc/milkytracker} $PKG/usr/doc
+install -Dm644 resources/pictures/carton.png \
+ $PKG/usr/share/pixmaps/milkytracker.png
+install -m644 $CWD/milkytracker.desktop \
+ $PKG/usr/share/applications
-mkdir -p $PKG/usr/share/{applications,pixmaps}
-cp $CWD/milkytracker.desktop $PKG/usr/share/applications
-cp resources/pictures/carton.png $PKG/usr/share/pixmaps/milkytracker-icon-128.png
+mv $PKG/usr/share/doc/MilkyTracker $PKG/usr/doc/$PRGNAM-$VERSION
+rmdir $PKG/usr/share/doc/milkytracker $PKG/usr/share/doc
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+install -m644 docs/ChangeLog.html $PKG/usr/doc/$PRGNAM-$VERSION
+install -m644 docs/MilkyTracker.html $PKG/usr/doc/$PRGNAM-$VERSION
+install -m644 docs/readme_unix $PKG/usr/doc/$PRGNAM-$VERSION
+install -m644 docs/FAQ.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/audio/milkytracker/milkytracker.info b/audio/milkytracker/milkytracker.info
index cdab01e8f059b..02c8b82d73592 100644
--- a/audio/milkytracker/milkytracker.info
+++ b/audio/milkytracker/milkytracker.info
@@ -1,8 +1,8 @@
PRGNAM="milkytracker"
-VERSION="0.90.86"
+VERSION="1.02.00"
HOMEPAGE="http://www.milkytracker.org/"
-DOWNLOAD="http://www.milkytracker.org/files/milkytracker-0.90.86.tar.bz2"
-MD5SUM="1ef462969cf54ba61748d4d878b5747e"
+DOWNLOAD="https://github.com/milkytracker/MilkyTracker/archive/v1.02.00/milkytracker-1.02.00.tar.gz"
+MD5SUM="ab4c881b8bbd41fde60823c191c7c6ce"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="zziplib"