added aarch64 modified builds
This commit is contained in:
parent
4c31c326ef
commit
da71864a5c
|
@ -0,0 +1 @@
|
|||
freealut is a free implementation of OpenAL's ALUT standard.
|
|
@ -0,0 +1,111 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Slackware build script for freealut
|
||||
#
|
||||
# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# 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=freealut
|
||||
VERSION=${VERSION:-1.1.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_notponce}
|
||||
PKGTYPE=${PKGTYPE:-txz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# 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:-/mmc/sbopkg/tmp}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/mmc/sbopkg/output/}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP || exit 1
|
||||
rm -rf freealut-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
||||
cd freealut-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
cp /usr/share/automake-1.16/config.sub $TMP/freealut-1.1.0/admin/autotools/config.sub
|
||||
cp /usr/share/automake-1.16/config.guess $TMP/freealut-1.1.0/admin/autotools/config.guess
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var/lib \
|
||||
--build=$ARCH-unknown-linux \
|
||||
|| exit 1
|
||||
|
||||
make || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# No man/info pages in freealut
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/freealut.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README examples/ \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
rm -rf $PKG/usr/doc/freealut-$VERSION/examples/.{deps,libs}
|
||||
cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="freealut"
|
||||
VERSION="1.1.0"
|
||||
HOMEPAGE="http://www.openal.org/"
|
||||
DOWNLOAD="https://src.fedoraproject.org/repo/pkgs/freealut/freealut-1.1.0.tar.gz/e089b28a0267faabdb6c079ee173664a/freealut-1.1.0.tar.gz"
|
||||
MD5SUM="e089b28a0267faabdb6c079ee173664a"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Erik Hanson"
|
||||
EMAIL="erik@slackbuilds.org"
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
freealut: freealut (The OpenAL Utility Toolkit (ALUT)
|
||||
freealut:
|
||||
freealut: freealut is a free implementation of OpenAL's ALUT standard.
|
||||
freealut:
|
||||
freealut: http://www.openal.org/
|
||||
freealut:
|
||||
freealut:
|
||||
freealut:
|
||||
freealut:
|
||||
freealut:
|
||||
freealut:
|
|
@ -0,0 +1,3 @@
|
|||
The dynamite library is needed by tools to be capable of squeezing
|
||||
out juicy .cab files from self-extracting installation programs
|
||||
created by the Setup Factory installation program.
|
|
@ -0,0 +1,98 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for libdynamite
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=libdynamite
|
||||
VERSION=${VERSION:-0.1.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_notponce}
|
||||
PKGTYPE=${PKGTYPE:-txz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# 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:-/mmc/sbopkg/tmp}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/mmc/sbopkg/output}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
cp /usr/share/automake-1.16/config.guess $TMP/libdynamite-0.1.1/config.guess
|
||||
cp /usr/share/automake-1.16/config.sub $TMP/libdynamite-0.1.1/config.sub
|
||||
|
||||
|
||||
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
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
ChangeLog LICENSE \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
|
@ -0,0 +1,94 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Slackware build script for libdynamite
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=libdynamite
|
||||
VERSION=${VERSION:-0.1.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# 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}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
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
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
ChangeLog LICENSE \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="libdynamite"
|
||||
VERSION="0.1.1"
|
||||
HOMEPAGE="https://sourceforge.net/projects/synce"
|
||||
DOWNLOAD="https://downloads.sourceforge.net/project/synce/Dynamite/0.1.1/libdynamite-0.1.1.tar.gz"
|
||||
MD5SUM="238bf243dba2166a2e0e141b18065235"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="David Somero"
|
||||
EMAIL="dsomero@hotmail.com"
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="libdynamite"
|
||||
VERSION="0.1.1"
|
||||
HOMEPAGE="https://sourceforge.net/projects/synce"
|
||||
DOWNLOAD="https://downloads.sourceforge.net/project/synce/Dynamite/0.1.1/libdynamite-0.1.1.tar.gz"
|
||||
MD5SUM="238bf243dba2166a2e0e141b18065235"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="David Somero"
|
||||
EMAIL="dsomero@hotmail.com"
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
libdynamite: libdynamite (cab extractor)
|
||||
libdynamite:
|
||||
libdynamite: The dynamite library is needed by tools to be capable of squeezing
|
||||
libdynamite: out juicy .cab files from self-extracting installation programs
|
||||
libdynamite: created by the Setup Factory installation program.
|
||||
libdynamite:
|
||||
libdynamite:
|
||||
libdynamite:
|
||||
libdynamite:
|
||||
libdynamite:
|
||||
libdynamite:
|
|
@ -0,0 +1,6 @@
|
|||
Lua is a free software light-weight programming language designed
|
||||
for extending applications. Lua is also frequently used as a
|
||||
general-purpose, stand-alone scripting language.
|
||||
|
||||
This package is for the version 5.1.x of lua, the one compatible
|
||||
with the software that needs lua on slackbuilds.org.
|
|
@ -0,0 +1,109 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Lua
|
||||
|
||||
# Written by Menno Duursma
|
||||
# Modified by the SlackBuilds.org project
|
||||
# Modified by Aaron W. Hsu
|
||||
# Updated by Matteo Bernardini
|
||||
|
||||
# This program is free software. It comes without any warranty.
|
||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
PRGNAM=lua
|
||||
VERSION=${VERSION:-5.1.5}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_notponce}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/blds}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -fPIC -DPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
|
||||
# Fix up a to-be-installed header and the pkgconfig file
|
||||
sed -i "s|/usr/local|/usr|" src/luaconf.h
|
||||
sed -i "s|lib/lua|lib$LIBDIRSUFFIX/lua|" src/luaconf.h
|
||||
sed -i "s|/usr/local|/usr|" etc/lua.pc
|
||||
sed -i "s|prefix}/lib|prefix}/lib${LIBDIRSUFFIX}|g" etc/lua.pc
|
||||
|
||||
make linux \
|
||||
CFLAGS="$SLKCFLAGS \$(MYCFLAGS)" \
|
||||
INSTALL_TOP=/usr \
|
||||
INSTALL_LIB=/usr/lib${LIBDIRSUFFIX} \
|
||||
INSTALL_LMOD=/usr/share/lua/5.1 \
|
||||
INSTALL_CMOD=/usr/lib${LIBDIRSUFFIX}/lua/5.1
|
||||
|
||||
make linux install \
|
||||
CFLAGS="$SLKCFLAGS \$(MYCFLAGS)" \
|
||||
INSTALL_TOP=$PKG/usr \
|
||||
INSTALL_LIB=$PKG/usr/lib${LIBDIRSUFFIX} \
|
||||
INSTALL_LMOD=$PKG/usr/share/lua/5.1 \
|
||||
INSTALL_CMOD=$PKG/usr/lib${LIBDIRSUFFIX}/lua/5.1
|
||||
|
||||
# Now let's build the shared library
|
||||
mkdir -p shared
|
||||
cd shared
|
||||
ar -x $PKG/usr/lib${LIBDIRSUFFIX}/liblua.a
|
||||
gcc -ldl -lreadline -lhistory -lncurses -lm -shared *.o -o liblua.so.$VERSION
|
||||
cp -a liblua.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}
|
||||
( cd $PKG/usr/lib${LIBDIRSUFFIX}
|
||||
ln -s liblua.so.$VERSION liblua.so.5.1
|
||||
ln -s liblua.so.$VERSION liblua.so.5
|
||||
ln -s liblua.so.$VERSION liblua.so
|
||||
)
|
||||
cd ..
|
||||
|
||||
# and install the pkgconfig file
|
||||
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
|
||||
cat etc/lua.pc > $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/lua.pc
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{extras,html}
|
||||
cp -a COPYRIGHT HISTORY INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a doc/*.html doc/logo.gif doc/lua.css $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||
cp -a etc test $PKG/usr/doc/$PRGNAM-$VERSION/extras
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="lua"
|
||||
VERSION="5.1.5"
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
DOWNLOAD="http://www.lua.org/ftp/lua-5.1.5.tar.gz"
|
||||
MD5SUM="2e115fe26e435e33b0d5c022e4490567"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Matteo Bernardini"
|
||||
EMAIL="ponce@slackbuilds.org"
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
lua: lua (a powerful, fast, light-weight, embeddable scripting language)
|
||||
lua:
|
||||
lua: Lua combines simple procedural syntax with powerful data description
|
||||
lua: constructs based on associative arrays and extensible semantics.
|
||||
lua: Lua is dynamically typed, runs by interpreting bytecode for a
|
||||
lua: register-based virtual machine, and has automatic memory management
|
||||
lua: with incremental garbage collection, making it ideal for
|
||||
lua: configuration, scripting, and rapid prototyping.
|
||||
lua:
|
||||
lua:
|
||||
lua:
|
|
@ -0,0 +1,7 @@
|
|||
The Structured Terminal Forms Language/Library
|
||||
|
||||
STFL is a library which implements a curses-based widget set for text
|
||||
terminals. The STFL API can be used from C, SPL, Python, Perl and
|
||||
Ruby and has only 14 simple function calls.
|
||||
|
||||
spl is an optional dependency.
|
|
@ -0,0 +1,13 @@
|
|||
diff -Nur stfl-0.22.orig//Makefile stfl-0.22/Makefile
|
||||
--- stfl-0.22.orig//Makefile 2009-06-19 12:30:52.000000000 -0500
|
||||
+++ stfl-0.22/Makefile 2011-01-11 22:21:10.623044411 -0600
|
||||
@@ -21,7 +21,8 @@
|
||||
include Makefile.cfg
|
||||
|
||||
export CC = gcc -pthread
|
||||
-export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC
|
||||
+OPTS = -Os
|
||||
+export CFLAGS += -I. -Wall $(OPTS) -ggdb -D_GNU_SOURCE -fPIC
|
||||
export LDLIBS += -lncursesw
|
||||
|
||||
SONAME := libstfl.so.0
|
|
@ -0,0 +1,106 @@
|
|||
diff -Nur stfl-0.24/Makefile stfl-0.24-py3/Makefile
|
||||
--- stfl-0.24/Makefile 2015-02-12 05:14:33.000000000 -0800
|
||||
+++ stfl-0.24-py3/Makefile 2018-03-18 20:44:29.103012040 -0700
|
||||
@@ -48,6 +48,8 @@
|
||||
rm -f perl5/stfl_wrap.c perl5/stfl.pm perl5/build_ok
|
||||
rm -f python/stfl.py python/stfl.pyc python/_stfl.so
|
||||
rm -f python/stfl_wrap.c python/stfl_wrap.o
|
||||
+ rm -f python3/stfl.py python3/stfl.pyc python3/_stfl.so
|
||||
+ rm -f python3/stfl_wrap.c python3/stfl_wrap.o
|
||||
rm -f ruby/Makefile ruby/stfl_wrap.c ruby/stfl_wrap.o
|
||||
rm -f ruby/stfl.so ruby/build_ok Makefile.deps_new
|
||||
rm -f stfl.pc libstfl.so libstfl.so.*
|
||||
@@ -81,6 +83,10 @@
|
||||
include python/Makefile.snippet
|
||||
endif
|
||||
|
||||
+ifeq ($(FOUND_SWIG)$(FOUND_PYTHON3),11)
|
||||
+include python3/Makefile.snippet
|
||||
+endif
|
||||
+
|
||||
ifeq ($(FOUND_SWIG)$(FOUND_RUBY),11)
|
||||
include ruby/Makefile.snippet
|
||||
endif
|
||||
diff -Nur stfl-0.24/Makefile.cfg stfl-0.24-py3/Makefile.cfg
|
||||
--- stfl-0.24/Makefile.cfg 2009-05-31 11:20:39.000000000 -0700
|
||||
+++ stfl-0.24-py3/Makefile.cfg 2018-03-18 20:59:24.365022626 -0700
|
||||
@@ -46,6 +46,12 @@
|
||||
FOUND_PYTHON = 0
|
||||
endif
|
||||
|
||||
+ifneq ($(shell python3 -c 'print(1)' 2>/dev/null),)
|
||||
+FOUND_PYTHON3 = 1
|
||||
+else
|
||||
+FOUND_PYTHON3 = 0
|
||||
+endif
|
||||
+
|
||||
ifneq ($(shell ruby -e 'puts 1' 2>/dev/null),)
|
||||
FOUND_RUBY = 1
|
||||
else
|
||||
diff -Nur stfl-0.24/python/Makefile.snippet stfl-0.24-py3/python/Makefile.snippet
|
||||
--- stfl-0.24/python/Makefile.snippet 2009-06-18 01:27:16.000000000 -0700
|
||||
+++ stfl-0.24-py3/python/Makefile.snippet 2018-03-18 21:04:57.805026569 -0700
|
||||
@@ -33,8 +33,7 @@
|
||||
|
||||
install_python: python/_stfl.so python/stfl.py python/stfl.pyc
|
||||
mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
- mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
|
||||
- cp python/_stfl.so $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
|
||||
+ cp python/_stfl.so $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
cp python/stfl.pyc $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
cp python/stfl.py $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
|
||||
diff -Nur stfl-0.24/python3/Makefile.snippet stfl-0.24-py3/python3/Makefile.snippet
|
||||
--- stfl-0.24/python3/Makefile.snippet 2018-03-18 21:02:25.523024769 -0700
|
||||
+++ stfl-0.24-py3/python3/Makefile.snippet 2018-03-18 20:56:37.624020655 -0700
|
||||
@@ -18,23 +18,22 @@
|
||||
# MA 02110-1301 USA
|
||||
#
|
||||
|
||||
-PYTHON_VERSION = $(shell python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d'.')
|
||||
-PYTHON_SITEARCH = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
||||
+PYTHON3_VERSION = $(shell python3 -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d'.')
|
||||
+PYTHON3_SITEARCH = $(shell python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
||||
|
||||
-all: python/_stfl.so python/stfl.py python/stfl.pyc
|
||||
+all: python3/_stfl.so python3/stfl.py python3/stfl.pyc
|
||||
|
||||
-install: install_python
|
||||
+install: install_python3
|
||||
|
||||
-python/_stfl.so python/stfl.py python/stfl.pyc: libstfl.a stfl.h python/stfl.i swig/*.i
|
||||
- cd python && swig -python -threads stfl.i
|
||||
- gcc -shared -pthread -fPIC python/stfl_wrap.c -I/usr/include/python$(PYTHON_VERSION) \
|
||||
- -I. libstfl.a -lncursesw -o python/_stfl.so
|
||||
- cd python && python -c 'import stfl'
|
||||
-
|
||||
-install_python: python/_stfl.so python/stfl.py python/stfl.pyc
|
||||
- mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
- mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
|
||||
- cp python/_stfl.so $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
|
||||
- cp python/stfl.pyc $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
- cp python/stfl.py $(DESTDIR)$(PYTHON_SITEARCH)/
|
||||
+python3/_stfl.so python3/stfl.py python3/stfl.pyc: libstfl.a stfl.h python3/stfl.i swig/*.i
|
||||
+ cd python3 && swig -python -threads stfl.i
|
||||
+ gcc -shared -pthread -fPIC python3/stfl_wrap.c -I$(shell python3 -c "from distutils.sysconfig import get_python_inc ; print(get_python_inc())") \
|
||||
+ -I. libstfl.a -lncursesw -o python3/_stfl.so
|
||||
+ cd python3 && python3 -c 'import stfl'
|
||||
+
|
||||
+install_python3: python3/_stfl.so python3/stfl.py python3/stfl.pyc
|
||||
+ mkdir -p $(DESTDIR)$(PYTHON3_SITEARCH)/
|
||||
+ cp python3/_stfl.so $(DESTDIR)$(PYTHON3_SITEARCH)/
|
||||
+ cp -r python3/__pycache__ $(DESTDIR)$(PYTHON3_SITEARCH)/
|
||||
+ cp python3/stfl.py $(DESTDIR)$(PYTHON3_SITEARCH)/
|
||||
|
||||
diff -Nur stfl-0.24/python3/example.py stfl-0.24-py3/python3/example.py
|
||||
--- stfl-0.24/python3/example.py 2018-03-18 21:02:25.523024769 -0700
|
||||
+++ stfl-0.24-py3/python3/example.py 2018-03-18 20:38:11.053007569 -0700
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
if __name__=="__main__":
|
||||
if len(sys.argv) not in [2,3]:
|
||||
- print "Usage: %s file.csv [delimiter]"%sys.argv[0]
|
||||
+ print("Usage: %s file.csv [delimiter]"%sys.argv[0])
|
||||
sys.exit(1)
|
||||
|
||||
c=CSV(sys.argv[1], len(sys.argv)==3 and sys.argv[2] or ",")
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
stfl: stfl (the Structured Terminal Forms Language/Library)
|
||||
stfl:
|
||||
stfl: STFL is a library which implements a curses-based widget set for text
|
||||
stfl: terminals. The STFL API can be used from C, SPL, Python, Perl and
|
||||
stfl: Ruby. The public STFL API is only 14 simple function calls big and and
|
||||
stfl: there are already generic SWIG bindings. Thus it is very easy to port
|
||||
stfl: to additional scripting languages.
|
||||
stfl:
|
||||
stfl: Homepage: http://www.clifford.at/stfl/
|
||||
stfl:
|
||||
stfl:
|
|
@ -0,0 +1,92 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for stfl
|
||||
# Originally written by slakmagik <jsun@freeshell.org>
|
||||
# Maintained by Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
# Released under the WTFPL
|
||||
|
||||
PRGNAM=stfl
|
||||
VERSION=${VERSION:-0.24}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_notponce}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=armv8-a -mtune=cortex-a53 -fPIC -DPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Allow custom options in Makefile
|
||||
patch -p1 < $CWD/allow-custom-opts-in-Makefile.patch
|
||||
# Add proper Python 2/3 support
|
||||
cp -r python python3
|
||||
patch -p1 < $CWD/python-support.patch
|
||||
|
||||
make install \
|
||||
OPTS="$SLKCFLAGS" \
|
||||
prefix=/usr \
|
||||
mandir=/usr/man \
|
||||
libdir=lib${LIBDIRSUFFIX} \
|
||||
DESTDIR=$PKG \
|
||||
-j 1
|
||||
|
||||
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||
find $PKG -depth -type d -empty -delete || true
|
||||
|
||||
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
|
||||
|
||||
# make installs an example for perl in the lib path
|
||||
rm $PKG/usr/lib${LIBDIRSUFFIX}/perl5/vendor_perl/example*.pl
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
# install all examples into the doc directory
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
cp -a \
|
||||
example.{c,stfl} perl5/example*.pl python/example*.* ruby/example*.rb \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION/examples
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="stfl"
|
||||
VERSION="0.24"
|
||||
HOMEPAGE="http://www.clifford.at/stfl/"
|
||||
DOWNLOAD="http://www.clifford.at/stfl/stfl-0.24.tar.gz"
|
||||
MD5SUM="98c764ccc8f13ed05ea22559d7116b96"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="python3"
|
||||
MAINTAINER="Benjamin Trigona-Harany"
|
||||
EMAIL="slackbuilds@jaxartes.net"
|
|
@ -0,0 +1,21 @@
|
|||
The Synthesis ToolKit in C++ (STK) is a set of open source audio
|
||||
signal processing and algorithmic synthesis classes written in the
|
||||
C++ programming language. STK was designed to facilitate rapid
|
||||
development of music synthesis and audio processing software, with
|
||||
an emphasis on cross-platform functionality, realtime control,
|
||||
ease of use, and educational example code.
|
||||
|
||||
Optional dependencies:
|
||||
* oss, for OSS audio API support
|
||||
* jack, for JACK audio API support
|
||||
|
||||
Build Options:
|
||||
|
||||
STK has 3 audio APIs to choose from, that you can control by
|
||||
passing the AUDIOAPI variable value to the slackbuild.
|
||||
|
||||
AUDIOAPI=alsa (default, choose native ALSA API support)
|
||||
|
||||
AUDIOAPI=oss (choose native OSS API support, requires oss)
|
||||
|
||||
AUDIOAPI=jack (choose native JACK server API support, requires jack)
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
stk: stk (The Synthesis ToolKit in C++)
|
||||
stk:
|
||||
stk: The Synthesis ToolKit in C++ (STK) is a set of open source audio
|
||||
stk: signal processing and algorithmic synthesis classes written in the
|
||||
stk: C++ programming language. STK was designed to facilitate rapid
|
||||
stk: development of music synthesis and audio processing software, with
|
||||
stk: an emphasis on cross-platform functionality, realtime control,
|
||||
stk: ease of use, and educational example code.
|
||||
stk:
|
||||
stk: https://ccrma.stanford.edu/software/stk/
|
||||
stk:
|
|
@ -0,0 +1,125 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for STK
|
||||
|
||||
# Copyright 2013 Gabriel Magno, Belo Horizonte, MG, Brazil
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=stk
|
||||
VERSION=${VERSION:-4.4.4}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_ponce}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/bob/sbopkg/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/bob/sbopkg/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=armv8-a -mtune=cortex-a72 -fPIC -DPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Determine which audio API to use.
|
||||
# Possible values for PROFILE: alsa, oss, jack.
|
||||
AUDIOAPI=${AUDIOAPI:-jack}
|
||||
|
||||
cp /usr/share/automake-1.16/config.guess /bob/sbopkg/tmp/stk-4.4.4/config/config.guess
|
||||
cp /usr/share/automake-1.16/config.sub /bob/sbopkg/tmp/stk-4.4.4/config/config.sub
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--with-${AUDIOAPI} \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
# Compile only the library files (both static and dynamic)
|
||||
# Seems our flags are ignored
|
||||
sed -i "s|-O3|$SLKCFLAGS|" src/Makefile
|
||||
cd src
|
||||
make libstk.a
|
||||
make libstk.so
|
||||
|
||||
# The Makefile does not provide an install option, so we have to manually copy files
|
||||
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
|
||||
mkdir -p $PKG/usr/include/$PRGNAM
|
||||
mkdir -p $PKG/usr/share/$PRGNAM/tools
|
||||
cp -a libstk.* $PKG/usr/lib${LIBDIRSUFFIX}/
|
||||
cp -a ../include/* $PKG/usr/include/$PRGNAM/
|
||||
cp -a ../rawwaves $PKG/usr/share/$PRGNAM
|
||||
cp -a ../bin/treesed $PKG/usr/share/$PRGNAM/tools/
|
||||
cd -
|
||||
|
||||
# Add a missing link
|
||||
( cd $PKG/usr/lib${LIBDIRSUFFIX} ; ln -s libstk.so.4.4.4 libstk.so.4 )
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
INSTALL README doc/* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
find $PKG/usr/doc/$PRGNAM-$VERSION -iname "README-*.txt" -not -iname "*Linux*" -exec rm -f {} \;
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="stk"
|
||||
VERSION="4.4.4"
|
||||
HOMEPAGE="https://ccrma.stanford.edu/software/stk/"
|
||||
DOWNLOAD="http://ccrma.stanford.edu/software/stk/release/stk-4.4.4.tar.gz"
|
||||
MD5SUM="66646cb1117eee2d767c4571cc51a8c3"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Gabriel Magno"
|
||||
EMAIL="gabrielmagno1@gmail.com"
|
Loading…
Reference in New Issue