diff options
author | David Woodfall <dave@dawoodfall.net> | 2018-03-27 15:10:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-31 07:41:38 +0700 |
commit | 359f46f7cca5c38da32e9054973e6b37c3e3f417 (patch) | |
tree | 8874d736c59e09fdd59eecd4ddf48bd238067339 /audio/nas/nas.SlackBuild | |
parent | f8f17629245bc12d203a0f99caa07e76f6c04d19 (diff) |
audio/nas: Updated for version 1.9.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/nas/nas.SlackBuild')
-rw-r--r-- | audio/nas/nas.SlackBuild | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/audio/nas/nas.SlackBuild b/audio/nas/nas.SlackBuild index 25ac255e9ff79..73543638bd47d 100644 --- a/audio/nas/nas.SlackBuild +++ b/audio/nas/nas.SlackBuild @@ -22,13 +22,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=nas -VERSION=${VERSION:-1.9.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -39,8 +39,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" @@ -56,7 +56,7 @@ fi set -e rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT +mkdir -p $TMP $PKG/etc/rc.d $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz @@ -69,7 +69,20 @@ find -L . \ -exec chmod 644 {} \; xmkmf -make World +cd config +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --build=$ARCH-slackware-linux +cd .. + +make CFLAGS="$SLKCFLAGS" World make install.man install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ @@ -78,7 +91,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ 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 -install -D -m0755 $CWD/rc.nasd.new $PKG/etc/rc.d/rc.nasd.new +cat $CWD/rc.nasd.new > $PKG/etc/rc.d/rc.nasd.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |