summaryrefslogtreecommitdiffstats
path: root/audio/hydrogen
diff options
context:
space:
mode:
Diffstat (limited to 'audio/hydrogen')
-rw-r--r--audio/hydrogen/hydrogen.SlackBuild22
-rw-r--r--audio/hydrogen/hydrogen.info8
2 files changed, 21 insertions, 9 deletions
diff --git a/audio/hydrogen/hydrogen.SlackBuild b/audio/hydrogen/hydrogen.SlackBuild
index 0720c6c8a3..ee9780f298 100644
--- a/audio/hydrogen/hydrogen.SlackBuild
+++ b/audio/hydrogen/hydrogen.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for hydrogen
# Copyright 2013 David Woodfall <dave@slackbuilds.org>
@@ -21,10 +21,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=hydrogen
-VERSION=${VERSION:-0.9.7}
+VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -34,7 +37,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -89,6 +99,8 @@ cd ..
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
+mv $PKG/usr/share/man $PKG/usr
+
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
@@ -97,7 +109,7 @@ cp data/img/gray/h2-icon.svg \
$PKG/usr/share/icons/hicolor/scalable/categories
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL.txt README.txt *.txt \
+cp -a AUTHORS COPYING ChangeLog DEVELOPERS README.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -106,4 +118,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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
diff --git a/audio/hydrogen/hydrogen.info b/audio/hydrogen/hydrogen.info
index f9854564d0..0530959b92 100644
--- a/audio/hydrogen/hydrogen.info
+++ b/audio/hydrogen/hydrogen.info
@@ -1,8 +1,8 @@
PRGNAM="hydrogen"
-VERSION="0.9.7"
-HOMEPAGE="https://github.com/hydrogen-music/"
-DOWNLOAD="https://github.com/hydrogen-music/hydrogen/archive/0.9.7/hydrogen-0.9.7.tar.gz"
-MD5SUM="569e5749e1c3f45cde09d13ba6738696"
+VERSION="1.0.2"
+HOMEPAGE="https://github.com/hydrogen-music/hydrogen"
+DOWNLOAD="https://github.com/hydrogen-music/hydrogen/archive/1.0.2/hydrogen-1.0.2.tar.gz"
+MD5SUM="9409473f47e8a043ed3d015c911f240a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""