Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
7d0a345610
5 changed files with 335 additions and 52 deletions
|
@ -2,7 +2,7 @@
|
|||
set -x -e
|
||||
|
||||
PRGNAM=clojure
|
||||
VERSION=1.1.0-rc1
|
||||
VERSION=1.1.0-rc2
|
||||
ARCH=java
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
|
|
101
d/löve/löve.SlackBuild
Executable file
101
d/löve/löve.SlackBuild
Executable file
|
@ -0,0 +1,101 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=love
|
||||
VERSION=0.6.0
|
||||
RELEASE_ID=20091214-301312c82b00
|
||||
|
||||
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=/tmp
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ -e $CWD/$PRGNAM-$VERSION-linux-src.tar.?z* ] \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION-linux-src.tar.?z*
|
||||
# [ ! -e $PRGNAM-$VERSION ] \
|
||||
# && wget -c http://$PRGNAM.googlecode.com/files/$PRGNAM-$VERSION.tar.bz2 \
|
||||
# && tar xvf $PRGNAM-$VERSION.tar.?z*
|
||||
find . -type d -name "$PRGNAM-*-*" -exec mv {} $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
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
# cleaning empty directories
|
||||
rm -fr $PKG$PREFIX/man $PKG$PREFIX/lib64
|
||||
)
|
||||
|
||||
# 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 ./man -type f -name "*.?" -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
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM (lua 2D game engine)
|
||||
$PRGNAM:
|
||||
$PRGNAM: LÖVE is an unquestionably awesome 2D game engine, which allows rapid game
|
||||
$PRGNAM: development and prototyping in Lua.
|
||||
$PRGNAM:
|
||||
$PRGNAM: Requires a lot of libraries: mpg123-1.x, OpenAL, libmodplug, DevIL, PhysicsFS
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://love2d.org/
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
||||
|
72
fonts/helvetica/helvetica.SlackBuild
Executable file
72
fonts/helvetica/helvetica.SlackBuild
Executable file
|
@ -0,0 +1,72 @@
|
|||
#!/bin/sh
|
||||
|
||||
PRGNAM=$(basename $(pwd))
|
||||
VERSION=${VERSION:-$(date +%F | tr -d '-')}
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-cyco}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
||||
# Place to build (TMP) package (PKG) and output (OUTPUT) the program:
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
# Create working directories:
|
||||
mkdir -p $OUTPUT # place for the package to be saved
|
||||
mkdir -p $PKG # place for the package to be built
|
||||
rm -rf $PKG/* # always erase old package's contents
|
||||
rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log
|
||||
# remove old log files
|
||||
|
||||
FONTDIR="/usr/share/fonts/TTF"
|
||||
|
||||
# Move the fonts into place:
|
||||
mkdir -p $PKG$FONTDIR
|
||||
( cd $PKG$FONTDIR/
|
||||
if [ -e $CWD/helvetica.zip ] ; then
|
||||
unzip $CWD/helvetica.zip
|
||||
else
|
||||
wget -c http://mirrored.spockz.nl/file/fonts/helvetica/helvetica.zip ;
|
||||
unzip helvetica.zip
|
||||
rm helvetica.zip
|
||||
fi
|
||||
)
|
||||
|
||||
# Post-install script:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOT > $PKG/install/doinst.sh
|
||||
# Update X font indexes and the font cache:
|
||||
if [ -x .$XPREF/bin/mkfontdir ]; then
|
||||
chroot . $XPREF/bin/mkfontscale $FONTDIR
|
||||
chroot . $XPREF/bin/mkfontdir $FONTDIR
|
||||
fi
|
||||
if [ -x .$XPREF/bin/fc-cache ]; then
|
||||
chroot . $XPREF/bin/fc-cache -f $FONTDIR
|
||||
fi
|
||||
EOT
|
||||
|
||||
# Add a package description:
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM: $PRGNAM (font)
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://en.wikipedia.org/wiki/Helvetica
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
# Build the package:
|
||||
cd $PKG
|
||||
makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
|
||||
cd $OUTPUT
|
||||
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5
|
||||
cd -
|
||||
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
|
||||
|
97
l/libmodplug/libmodplug.SlackBuild
Executable file
97
l/libmodplug/libmodplug.SlackBuild
Executable file
|
@ -0,0 +1,97 @@
|
|||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
PRGNAM=libmodplug
|
||||
VERSION=0.8.7
|
||||
|
||||
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
ARCH=$(uname -m)
|
||||
LIBSUFFIX=$(echo $ARCH | grep -o "\(64\)")
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=/tmp
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
# Cleaning
|
||||
( cd $TMP
|
||||
rm -fr $PRGNAM-$VERSION
|
||||
rm -fr $PKG
|
||||
)
|
||||
|
||||
# Fetching sources
|
||||
( cd $TMP
|
||||
[ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
[ ! -e $PRGNAM-$VERSION ] \
|
||||
&& wget -c http://ftp.de.debian.org/debian/pool/main/libm/$PRGNAM/${PRGNAM}_$VERSION.orig.tar.gz -O $CWD/$PRGNAM-$VERSION.tar.gz \
|
||||
&& tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
)
|
||||
|
||||
# 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
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
./configure \
|
||||
--prefix=$PREFIX \
|
||||
--mandir=$PREFIX/man \
|
||||
--libdir=$PREFIX/lib64
|
||||
)
|
||||
|
||||
# Building
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make
|
||||
)
|
||||
|
||||
# Installation
|
||||
mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1}
|
||||
( cd $TMP/$PRGNAM-$VERSION
|
||||
make install DESTDIR=$PKG
|
||||
)
|
||||
|
||||
# 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 ./man -type f -name "*.?" -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
|
||||
( cd $PKG
|
||||
mkdir install
|
||||
cat <<EOF > install/slack-desc
|
||||
$PRGNAM: $PRGNAM ()
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://packages.debian.org/source/sid/libmodplug
|
||||
$PRGNAM:
|
||||
EOF
|
||||
|
||||
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$PACKAGER.txz
|
||||
)
|
||||
|
|
@ -1,64 +1,67 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
#set to 0 if you don't want to pack obvious
|
||||
INCLUDE_OBVIOUS=1
|
||||
|
||||
# variables
|
||||
TMP=/tmp
|
||||
CWD=$(pwd)
|
||||
|
||||
APP_NAME=awesome
|
||||
PKG=$TMP/package-$APP_NAME
|
||||
|
||||
PRGNAM=awesome
|
||||
VERSION=git$(date +%F | sed 's|-||g')
|
||||
SUFFIX=
|
||||
#BRANCH=awesome-next
|
||||
if [ ! "x$BRANCH" == "x" ] ; then
|
||||
APP_NAME=$BRANCH
|
||||
fi
|
||||
ARCH=$(uname -m)
|
||||
BUILD=1
|
||||
PACKAGER=cyco
|
||||
|
||||
REPOSITORIES_DIR=/home/cycojesus/projets/packages/repositories
|
||||
TMP=/tmp/$PACKAGER
|
||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||
OUTPUT=/tmp
|
||||
|
||||
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||
|
||||
DOCS="AUTHORS LICENSE README STYLE TODO UPGRADE PATCHES STYLE"
|
||||
|
||||
ARCH=x86_64
|
||||
BUILD=$(expr $(ls $TMP/$APP_NAME-$VERSION.txz | wc -l) + 1)cyco
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
SLCKFLAGS=""
|
||||
|
||||
function git_clone_or_pull() {
|
||||
REPO_URL=$1
|
||||
REPO_NAME=$2
|
||||
if [ ! -e $REPOSITORIES/$REPO_NAME ]; then
|
||||
git clone $REPO_URL $REPOSITORIES/$REPO_NAME
|
||||
else
|
||||
( cd $REPOSITORIES/$REPO_NAME
|
||||
git pull
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
# nettoyage préalable
|
||||
rm -fr $PKG $TMP/$APP_NAME-$VERSION
|
||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
||||
|
||||
mkdir -p $PKG
|
||||
|
||||
# mise en place
|
||||
cd $TMP
|
||||
SRC_PATH=$REPOSITORIES_DIR/awesome
|
||||
if [ -e $CWD/$APP_NAME-$VERSION.tar.?z* ] ; then
|
||||
tar xf $CWD/$APP_NAME-$VERSION.tar.?z*
|
||||
SRC_PATH=.
|
||||
cd $TMP/$APP_NAME-$VERSION
|
||||
SRC_PATH=$REPOSITORIES/$PRGNAM
|
||||
if [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ] ; then
|
||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||
SRC_PATH=.
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
else
|
||||
if [ ! -e $REPOSITORIES_DIR/awesome ] ; then
|
||||
mkdir -p $(dirname $REPOSITORIES_DIR/awesome)
|
||||
cd $(dirname $REPOSITORIES_DIR/awesome)
|
||||
git clone git://git.naquadah.org/awesome.git
|
||||
fi
|
||||
cd $REPOSITORIES_DIR/awesome
|
||||
git pull #origin $BRANCH
|
||||
rm -fr $TMP/$APP_NAME-$VERSION
|
||||
mkdir -p $TMP/$APP_NAME-$VERSION
|
||||
cd $TMP/$APP_NAME-$VERSION
|
||||
git_clone_or_pull git://git.naquadah.org/$PRGNAM.git $PRGNAM
|
||||
rm -fr $TMP/$PRGNAM-$VERSION
|
||||
mkdir -p $TMP/$PRGNAM-$VERSION
|
||||
cd $TMP/$PRGNAM-$VERSION
|
||||
fi
|
||||
|
||||
# configuration
|
||||
cmake \
|
||||
-DPREFIX=$PREFIX \
|
||||
-DWITH_DBUS=1 \
|
||||
-DSYSCONFDIR=/etc \
|
||||
-DAWESOME_DOC_PATH=$PREFIX/doc/$APP_NAME-$VERSION \
|
||||
-DAWESOME_XSESSION_PATH=/usr/share/apps/kdm/sessions \
|
||||
-DAWESOME_MAN_PATH=$PREFIX/man \
|
||||
$SRC_PATH
|
||||
-DPREFIX=$PREFIX \
|
||||
-DSYSCONFDIR=/etc \
|
||||
-DAWESOME_DOC_PATH=$PREFIX/doc/$PRGNAM-$VERSION \
|
||||
-DAWESOME_MAN_PATH=$PREFIX/man \
|
||||
$SRC_PATH
|
||||
|
||||
|
||||
# compilation
|
||||
|
@ -67,14 +70,20 @@ make -j3
|
|||
# installation
|
||||
make install DESTDIR=$PKG
|
||||
mkdir -p $PKG/etc/X11/xinit/
|
||||
cp $CWD/xinitrc.awesome $PKG/etc/X11/xinit/
|
||||
chmod +x $PKG/etc/X11/xinit/xinitrc.awesome
|
||||
cp $CWD/xinitrc.$PRGNAM $PKG/etc/X11/xinit/
|
||||
chmod +x $PKG/etc/X11/xinit/xinitrc.$PRGNAM
|
||||
|
||||
if [ $INCLUDE_OBVIOUS == 1 ] ; then
|
||||
git_clone_or_pull git://git.mercenariesguild.net/obvious.git obvious
|
||||
|
||||
cp -R $REPOSITORIES/obvious $PKG/usr/share/$PRGNAM/lib/
|
||||
fi
|
||||
|
||||
# correction
|
||||
cd $PKG
|
||||
chown -R root:root *
|
||||
|
||||
find . -name "*.in" -delete
|
||||
find $PKG -name \.git\* -exec rm -fr {} \;
|
||||
|
||||
[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
|
||||
|
||||
|
@ -88,19 +97,23 @@ find . -name "*.in" -delete
|
|||
# embaumement
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/install/slack-desc
|
||||
$APP_NAME: $APP_NAME (Tiling Window Manager)
|
||||
$APP_NAME:
|
||||
$APP_NAME: awesome is an extremely fast, small, and dynamic window manager for X.
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME:
|
||||
$APP_NAME: see /usr/doc/$APP_NAME-$VERSION for more details
|
||||
$APP_NAME:
|
||||
$PRGNAM: $PRGNAM (Window Manager "Framework")
|
||||
$PRGNAM:
|
||||
$PRGNAM: $PRGNAM is an extremely fast, small, and dynamic window manager for X.
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM:
|
||||
$PRGNAM: http://$PRGNAM.naquadah.org
|
||||
$PRGNAM: see /usr/doc/$PRGNAM-$VERSION for more details
|
||||
$PRGNAM:
|
||||
EOF
|
||||
if [ $INCLUDE_OBVIOUS == 1 ] ; then
|
||||
echo "$PRGNAM: [ include obvious ( http://$PRGNAM.naquadah.org/wiki/Obvious ) ]" >> $PKG/install/slack-desc
|
||||
else
|
||||
echo "$PRGNAM:" >> $PKG/install/slack-desc
|
||||
fi
|
||||
|
||||
# empaquetage
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP_NAME-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD.txz
|
||||
makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | sed 's/-//g')-$ARCH-$BUILD.txz
|
||||
|
|
Loading…
Reference in a new issue