slackbuilds/xap/subtle/subtle.SlackBuild

68 lines
1.7 KiB
Text
Raw Normal View History

#!/bin/sh
set -x
PRGNAM=subtle
VERSION=hg$(date +%F | tr -d '-' )
BUILD=1
PACKAGER=cyco
ARCH=$(uname -m)
CWD=$(pwd)
HOME=/home/cycojesus
TMP=/tmp
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
REPOSITORIES=$HOME/projets/packages/repositories
rm -fr $PKG $TMP/$PRGNAM-$VERSION
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
[ -e $PKG ] && rm -fr $PKG
( cd $TMP
if [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ]; then
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
else
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
hg clone http://hg.scrapping.cc/subtle $REPOSITORIES/$PRGNAM
else
( cd $REPOSITORIES/$PRGNAM
hg pull -u
)
fi
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
fi
)
( cd $TMP/$PRGNAM-$VERSION
RAKE_OPTIONS=$([ ! -e ./Rakefile ] && echo " -f $REPOSITORIES/$PRGNAM/Rakefile ")
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr config
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr build
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr install
)
( cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
$PRGNAM: $PRGNAM (is a grid-based manual tiling window manager)
$PRGNAM:
$PRGNAM: with a strong focus on easy but customizable look and feel. In comparison to
$PRGNAM: other tiling windows managers, subtle has no automatic tiling of the screen
$PRGNAM: size in any way, instead windows are arranged according to positions inside
$PRGNAM: of a grid - these positions are called gravities.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://unexist.scrapping.cc/projects/subtle
$PRGNAM:
EOF
)
( cd $PKG
makepkg -l y -c n $TMP/$PRGNAM-$(echo $VERSION | tr - .)-$ARCH-$BUILD$PACKAGER.txz
)