Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
afbd60b215
4 changed files with 234 additions and 1 deletions
96
d/cutter/cutter.SlackBuild
Executable file
96
d/cutter/cutter.SlackBuild
Executable file
|
@ -0,0 +1,96 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o 64)
|
||||
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
|
||||
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
|
||||
# Fetching sources
|
||||
if [ ! -e $REPOSITORY ] ; then
|
||||
git clone http://github.com/clear-code/cutter.git $REPOSITORY
|
||||
else
|
||||
( cd $REPOSITORY
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
cp -R $REPOSITORY $TMP/$PRGNAM-$VERSION
|
||||
|
||||
# Preparation
|
||||
cd $TMP/$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 {} \;
|
||||
|
||||
|
||||
# Configuration
|
||||
[ ! -e configure ] && ./autogen.sh #autoreconf
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--infodir=$PREFIX/info \
|
||||
--libdir=$PREFIX/lib$LIBSUFFIX \
|
||||
--libexecdir=$PREFIX/libexec \
|
||||
--docdir=$PREFIX/doc/$PRGNAM
|
||||
|
||||
# Building
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
make libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
# Installation
|
||||
make install DESTDIR=$PKG libdir=$PREFIX/lib$LIBSUFFIX
|
||||
|
||||
# Cleaning
|
||||
cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
find $PKG$PREFIX/man -type f -name "*.?" -exec gzip -9 {} \;
|
||||
find $PKG$PREFIX/info -name "dir" -exec rm {} \;
|
||||
find $PKG$PREFIX/info -type f -exec gzip -9 {} \;
|
||||
|
||||
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 {} \;
|
||||
|
||||
# Packaging
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Unit Testing Framework for C and C++)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Cutter is a xUnit family Unit Testing Framework for C and C++.
|
||||
$PRGNAM:
|
||||
$PRGNAM: This is a list of features of Cutter:
|
||||
$PRGNAM: * easy to write tests.
|
||||
$PRGNAM: * outputs result with useful format for debugging.
|
||||
$PRGNAM: * tests are built as shared libraries.
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://cutter.sourceforge.net/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l n -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|
56
doc/sicp-python3/sicp-python3.SlackBuild
Executable file
56
doc/sicp-python3/sicp-python3.SlackBuild
Executable file
|
@ -0,0 +1,56 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=$(date +"%Y.%m.%d_%H.%M")
|
||||
BUILD=1
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
TAG=cyco
|
||||
TMP=/tmp/$TAG
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/installs/SlackBuilds/repositories
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# cleaning
|
||||
rm -fr $PKG
|
||||
|
||||
# get sources
|
||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||
mkdir -p $REPOSITORIES/$PRGNAM
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack http://www-inst.eecs.berkeley.edu/~cs61a/sp12/
|
||||
)
|
||||
else
|
||||
( cd $REPOSITORIES/$PRGNAM
|
||||
httrack --update
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG$PREFIX/doc/
|
||||
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
mkdir -p install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (Teaching SICP using Python3 course)
|
||||
$PRGNAM:
|
||||
$PRGNAM: Berkeley class
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://www-inst.eecs.berkeley.edu/~cs61a/sp12/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
chown -R root:root *
|
||||
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
81
l/gail/gail.SlackBuild
Executable file
81
l/gail/gail.SlackBuild
Executable file
|
@ -0,0 +1,81 @@
|
|||
#!/bin/sh
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
VERSION=1.22.3
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
TAG=cyco
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/pkg-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
[ ! -e $CWD/$PRGNAM-$VERSION.tar.gz ] && wget -c http://ftp.acc.umu.se/pub/gnome/sources/gail/1.22/$PRGNAM-$VERSION.tar.bz2 -O $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
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 {} \;
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$(echo $ARCH | grep -o 64)
|
||||
|
||||
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
# 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--------------------------------------------------------|
|
||||
$PRGNAM: $PRGNAM ()
|
||||
$PRGNAM:
|
||||
$PRGNAM: GAIL provides accessibility support for gtk+ and libgnomecanvas by
|
||||
$PRGNAM: implementing AtkObjects for widgets in gtk+ and libgnomecanvas. The
|
||||
$PRGNAM: GAIL library is a GTK+ module.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://ftp.acc.umu.se/pub/gnome/sources/gail/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
|
|
@ -6,7 +6,7 @@ BUILD=1
|
|||
|
||||
TAG=cyco
|
||||
OUTPUT=/tmp
|
||||
TMP=/tmp/$TAG
|
||||
TMP=${TMP:=/tmp/$TAG}
|
||||
CWD=$(pwd)
|
||||
|
||||
PRGNAM=$(basename $CWD)
|
||||
|
|
Loading…
Reference in a new issue