|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Slackware build script for non |
|
|
|
# Copyright 2019 Klaatu | Lawrence, NZ | Klaatu@member.fsf.org |
|
|
|
# Copyright 2019-22 Klaatu | Lawrence, NZ | Klaatu@member.fsf.org |
|
|
|
|
|
|
|
# GNU All-Permissive License |
|
|
|
# Copying and distribution of this file, with or without modification, |
|
|
@ -11,12 +11,12 @@ |
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=non |
|
|
|
VERSION=${VERSION:-20200928} |
|
|
|
VERSION=${VERSION:-1.3.0} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
|
|
|
|
#determine what components we are building |
|
|
|
# determine what components we are building |
|
|
|
if [ "X$PROJECT" != "X" ]; then |
|
|
|
DAW="--project=${PROJECT}" |
|
|
|
else |
|
|
@ -61,10 +61,14 @@ set -e |
|
|
|
rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
cd $TMP |
|
|
|
rm -rf $PRGNAM-git-$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM-git-$VERSION.tar.bz2 |
|
|
|
cd $PRGNAM-git-$VERSION |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
mkdir $PRGNAM-$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM-daw-v"$VERSION".tar.gz \ |
|
|
|
-C $PRGNAM-$VERSION --strip-components 1 |
|
|
|
|
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
rm nonlib/nonlib |
|
|
|
|
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |
|
|
@ -81,9 +85,15 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \ |
|
|
|
--localstatedir=/var \ |
|
|
|
--mandir=/usr/man \ |
|
|
|
--docdir=/usr/doc/$PRGNAM-$VERSION |
|
|
|
./waf -j1 |
|
|
|
./waf |
|
|
|
./waf install --destdir=$PKG |
|
|
|
|
|
|
|
if [ "X$PROJECT" = "Xtimeline" -o "X$PROJECT" = "X" ]; then |
|
|
|
# fix nested bin directory |
|
|
|
mv $PKG/usr/bin/bin/import-ardour-session $PKG/usr/bin |
|
|
|
rmdir $PKG/usr/bin/bin/ |
|
|
|
fi |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|