sur is part of subtle
Signed-off-by: Gwenhael Le Moine <cycojesus@darkstar.example.net>
This commit is contained in:
parent
def1f4ec6e
commit
11b51807fd
1 changed files with 43 additions and 33 deletions
|
@ -2,63 +2,73 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
PRGNAM=subtle
|
|
||||||
VERSION=hg$(date +%F | tr -d '-' )
|
|
||||||
BUILD=1
|
|
||||||
PACKAGER=cyco
|
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
HOME=/home/cycojesus
|
HOME=/home/cycojesus
|
||||||
TMP=/tmp
|
TMP=/tmp
|
||||||
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
|
||||||
REPOSITORIES=$HOME/projets/packages/repositories
|
REPOSITORIES=$HOME/projets/packages/repositories
|
||||||
|
|
||||||
rm -fr $PKG $TMP/$PRGNAM-$VERSION
|
PRGNAM=$(basename $CWD)
|
||||||
|
PRGNAM1=$PRGNAM
|
||||||
|
PRGNAM2=sur
|
||||||
|
VERSION=hg$(date +%F | tr -d '-' )
|
||||||
|
BUILD=1
|
||||||
|
PACKAGER=cyco
|
||||||
|
PKG=$TMP/$PACKAGER/pkg-$PRGNAM
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
PREFIX=/usr
|
||||||
|
|
||||||
[ -e $TMP/$PRGNAM-$VERSION ] && rm -fr $TMP/$PRGNAM-$VERSION
|
|
||||||
[ -e $PKG ] && rm -fr $PKG
|
[ -e $PKG ] && rm -fr $PKG
|
||||||
|
|
||||||
( cd $TMP
|
function get_build_install() {
|
||||||
if [ -e $CWD/$PRGNAM-$VERSION.tar.?z* ]; then
|
COMPONENT=$1
|
||||||
tar xf $CWD/$PRGNAM-$VERSION.tar.?z*
|
|
||||||
else
|
[ -e $TMP/$COMPONENT-$VERSION ] && rm -fr $TMP/$COMPONENT-$VERSION
|
||||||
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
|
||||||
hg clone http://hg.scrapping.cc/subtle $REPOSITORIES/$PRGNAM
|
( cd $TMP
|
||||||
|
if [ -e $CWD/$COMPONENT-$VERSION.tar.?z* ]; then
|
||||||
|
tar xf $CWD/$COMPONENT-$VERSION.tar.?z*
|
||||||
else
|
else
|
||||||
( cd $REPOSITORIES/$PRGNAM
|
if [ ! -e $REPOSITORIES/$COMPONENT ]; then
|
||||||
hg pull -u
|
hg clone http://hg.scrapping.cc/subtle $REPOSITORIES/$COMPONENT
|
||||||
)
|
else
|
||||||
|
( cd $REPOSITORIES/$COMPONENT
|
||||||
|
hg pull -u
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
cp -R $REPOSITORIES/$COMPONENT $TMP/$COMPONENT-$VERSION
|
||||||
fi
|
fi
|
||||||
cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM-$VERSION
|
)
|
||||||
fi
|
|
||||||
)
|
|
||||||
|
|
||||||
( cd $TMP/$PRGNAM-$VERSION
|
( cd $TMP/$COMPONENT-$VERSION
|
||||||
RAKE_OPTIONS=$([ ! -e ./Rakefile ] && echo " -f $REPOSITORIES/$PRGNAM/Rakefile ")
|
RAKE_OPTIONS=$([ ! -e ./Rakefile ] && echo " -f $REPOSITORIES/$COMPONENT/Rakefile ")
|
||||||
|
|
||||||
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr config
|
rake $RAKE_OPTIONS destdir=$PKG prefix=$PREFIX config
|
||||||
|
|
||||||
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr build
|
rake $RAKE_OPTIONS destdir=$PKG prefix=$PREFIX build
|
||||||
|
|
||||||
rake $RAKE_OPTIONS destdir=$PKG prefix=/usr install
|
rake $RAKE_OPTIONS destdir=$PKG prefix=$PREFIX install
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
get_build_install $PRGNAM1
|
||||||
|
get_build_install $PRGNAM2
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
mkdir -p install
|
mkdir -p install
|
||||||
cat <<EOF > install/slack-desc
|
cat <<EOF > install/slack-desc
|
||||||
$PRGNAM: $PRGNAM (is a grid-based manual tiling window manager)
|
$PRGNAM: $PRGNAM1 (is a grid-based manual tiling window manager)
|
||||||
$PRGNAM:
|
$PRGNAM:
|
||||||
$PRGNAM: with a strong focus on easy but customizable look and feel. In comparison to
|
$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: 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: size in any way, instead windows are arranged according to positions inside
|
||||||
$PRGNAM: of a grid - these positions are called gravities.
|
$PRGNAM: of a grid - these positions are called gravities.
|
||||||
$PRGNAM:
|
|
||||||
$PRGNAM:
|
|
||||||
$PRGNAM:
|
|
||||||
$PRGNAM: http://unexist.scrapping.cc/projects/subtle
|
$PRGNAM: http://unexist.scrapping.cc/projects/subtle
|
||||||
$PRGNAM:
|
$PRGNAM: -------
|
||||||
|
$PRGNAM: $PRGNAM2 (Subtle User Repository ("rubbygem-like" repository of sublets))
|
||||||
|
$PRGNAM: {required gems: curb, sinatra, datamapper}
|
||||||
|
$PRGNAM: http://unexist.scrapping.cc/projects/sur
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue