diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/loki/README | 2 | ||||
-rw-r--r-- | development/loki/loki.SlackBuild | 59 | ||||
-rw-r--r-- | development/loki/loki.info | 8 | ||||
-rw-r--r-- | development/loki/slack-desc | 19 |
4 files changed, 88 insertions, 0 deletions
diff --git a/development/loki/README b/development/loki/README new file mode 100644 index 0000000000..84f2b95ccb --- /dev/null +++ b/development/loki/README @@ -0,0 +1,2 @@ +Loki is a C++ library of designs, containing flexible +implementations of common design patterns and idioms. diff --git a/development/loki/loki.SlackBuild b/development/loki/loki.SlackBuild new file mode 100644 index 0000000000..03ee9254cc --- /dev/null +++ b/development/loki/loki.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for loki +# Written by (Evgeny Ratnikov) (ratnikov dot ev at gmail dot com) + +PRGNAM=loki +VERSION=${VERSION:-0.1.6} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +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 . \ + \( -perm 777 -o -perm 775 -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" make -j3 +# Makefiles doesn't support DESTDIR, so we will patch them +find . -name Makefile | xargs sed -i -s "s|\$(prefix)|\$(DESTDIR)/\$(prefix)|g" +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES README doc/{html,flex,yasli} $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; + +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.tgz + + diff --git a/development/loki/loki.info b/development/loki/loki.info new file mode 100644 index 0000000000..e5195a4202 --- /dev/null +++ b/development/loki/loki.info @@ -0,0 +1,8 @@ +PRGNAM="loki" +VERSION="0.1.6" +HOMEPAGE="http://loki-lib.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/loki-lib/loki-0.1.6.tar.gz" +MD5SUM="319ca3012a4290dcc27db621cf365f71" +MAINTAINER="Evgeny Ratnikov" +EMAIL="ratnikov.ev@gmail.com" +APPROVED="rworkman" diff --git a/development/loki/slack-desc b/development/loki/slack-desc new file mode 100644 index 0000000000..eab8b4c63b --- /dev/null +++ b/development/loki/slack-desc @@ -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 ':'. + + |-----handy-ruler-------------------------------------------------------| +loki: loki (C++ library of designs) +loki: +loki: Loki is a C++ library of designs, containing flexible +loki: implementations of common design patterns and idioms. +loki: +loki: Homepage: http://loki-lib.sourceforge.net/ +loki: +loki: +loki: +loki: +loki: |