diff options
Diffstat (limited to 'libraries/skalibs')
-rw-r--r-- | libraries/skalibs/README | 31 | ||||
-rw-r--r-- | libraries/skalibs/skalibs.SlackBuild | 35 | ||||
-rw-r--r-- | libraries/skalibs/skalibs.info | 6 | ||||
-rw-r--r-- | libraries/skalibs/slack-desc | 2 |
4 files changed, 44 insertions, 30 deletions
diff --git a/libraries/skalibs/README b/libraries/skalibs/README index 2bb7aa0577..909a34f220 100644 --- a/libraries/skalibs/README +++ b/libraries/skalibs/README @@ -1,21 +1,21 @@ skalibs is a package centralizing the free software / open source C development files used for building all software at skarnet.org: it -contains essentially general-purpose libraries. You will need to -install skalibs if you plan to build skarnet.org software. The point -is that you won't have to download and compile big libraries, and care -about portability issues, everytime you need to build a package: do it -only once. +contains essentially general-purpose libraries. You will need to install +skalibs if you plan to build skarnet.org software. The point is that you +won't have to download and compile big libraries, and care about +portability issues, everytime you need to build a package: do it only +once. skalibs can also be used as a sound basic start for C development. -There are a lot of general-purpose libraries out there; but if your -main goal is to produce small and secure C code with a focus on system +There are a lot of general-purpose libraries out there; but if your main +goal is to produce small and secure C code with a focus on system programming, skalibs might be for you. NOTE: -Upstream recommends building skarnet.org softwares with static libraries -as most of skarnet.org softwares are small enough that using shared -libraries are generally not worth using. Therefore, the SlackBuild -script will only build the static libraries by default. +Upstream recommends building skarnet.org software with static libraries, +as most of skarnet.org software are small enough that shared libraries +are generally not worth using. Therefore, this SlackBuild script will +only build the static libraries by default. If you want to also build the shared libraries, pass BUILD_SHARED=yes environment variable to the script like below: @@ -28,10 +28,13 @@ libraries and not the static ones, you can do something like BUILD_SHARED=yes BUILD_STATIC=no ./skalibs.SlackBuild -If you just want to build and use skarnet.org softwares, building only +If you just want to build and use skarnet.org software, building only the static libraries should be sufficient. Also, the execvep() function from skalibs (used by all skarnet.org -softwares) has a default executable search path that will be used if the +software) has a default executable search path that will be used if the PATH environment variable is undefined. The default is /usr/bin:/bin. -Pass DEF_PATH=some:path:list to the script if you want to change it. +Pass DEF_PATH=some:path:list to the script if you want to change it, +e.g., + + DEF_PATH=/usr/bin:/bin:/usr/sbin:/sbin ./skalibs.SlackBuild diff --git a/libraries/skalibs/skalibs.SlackBuild b/libraries/skalibs/skalibs.SlackBuild index a868936621..e2078191dc 100644 --- a/libraries/skalibs/skalibs.SlackBuild +++ b/libraries/skalibs/skalibs.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for skalibs @@ -23,10 +23,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=skalibs -VERSION=${VERSION:-2.10.0.1} +VERSION=${VERSION:-2.14.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,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} @@ -55,18 +65,19 @@ else LIBDIRSUFFIX="" fi -# Upstream recommends building skarnet.org softwares using the static -# version of skalibs so we are going to build just the static version of skalibs by default -# If you need to build the shared libraries, just pass BUILD_SHARED=yes to this script +# Upstream recommends building skarnet.org software with static libraries, as +# most of skarnet.org software are small enough that shared libraries are +# generally not worth using. Therefore, we will only build the static libraries +# by default. BUILD_STATIC=${BUILD_STATIC:-yes} BUILD_SHARED=${BUILD_SHARED:-no} [ "$BUILD_STATIC" = "no" ] && LIBS_CONF="--disable-static" [ "$BUILD_SHARED" = "no" ] && LIBS_CONF="--disable-shared $LIBS_CONF" -# The execvep() function from skalibs (used by all skarnet.org softwares) has a default -# executable search path that will be used if the PATH environment variable is undefined. -# The default is /usr/bin:/bin. Pass DEF_PATH=some:path:list to the script if you want to -# change it. +# The execvep() function from skalibs (used by all skarnet.org software) has a +# default executable search path that will be used if the PATH environment +# variable is undefined. The default is /usr/bin:/bin. Pass +# DEF_PATH=some:path:list to this script if you want to change it. DEF_PATH=${DEF_PATH:-/usr/bin:/bin} set -e @@ -100,11 +111,11 @@ make strip make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README doc $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING NEWS README doc $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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/skalibs/skalibs.info b/libraries/skalibs/skalibs.info index 721d6f9068..ffde666904 100644 --- a/libraries/skalibs/skalibs.info +++ b/libraries/skalibs/skalibs.info @@ -1,8 +1,8 @@ PRGNAM="skalibs" -VERSION="2.10.0.1" +VERSION="2.14.1.0" HOMEPAGE="https://skarnet.org/software/skalibs/" -DOWNLOAD="https://skarnet.org/software/skalibs/skalibs-2.10.0.1.tar.gz" -MD5SUM="873df4b9961fb13df14003fe90ece63d" +DOWNLOAD="https://skarnet.org/software/skalibs/skalibs-2.14.1.0.tar.gz" +MD5SUM="289392217e4434909cf1ca31950e1f07" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/libraries/skalibs/slack-desc b/libraries/skalibs/slack-desc index 4bca6413d9..c633620d5f 100644 --- a/libraries/skalibs/slack-desc +++ b/libraries/skalibs/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -skalibs: skalibs (general-purpose C libraries for skarnet.org softwares) +skalibs: skalibs (general-purpose C libraries for skarnet.org software) skalibs: skalibs: skalibs is a package centralizing the free software / open source C skalibs: development files used for building all software at skarnet.org: it |