slackbuilds/doc/arcturo-library/arcturo-library.SlackBuild

51 lines
940 B
Text
Raw Normal View History

2011-06-23 21:30:09 +02:00
#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=$(date +"%Y.%m.%d_%H.%M")
BUILD=1
ARCH=noarch
2016-09-18 22:48:56 +02:00
REPOSITORY=/home/installs/SlackBuilds/repositories/$PRGNAM
2011-06-23 21:30:09 +02:00
TAG=cyco
TMP=/tmp/$TAG
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
PREFIX=/usr
# cleaning
rm -fr $PKG
# get sources
2016-09-18 22:48:56 +02:00
[ ! -e $REPOSITORY ] && git clone http://github.com/arcturo/library.git $REPOSITORY
( cd $REPOSITORY && git pull )
VERSION="$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )"
2011-06-23 21:30:09 +02:00
mkdir -p $PKG$PREFIX/doc/
2016-09-18 22:48:56 +02:00
cp -R $REPOSITORY $PKG$PREFIX/doc/$PRGNAM
2011-06-23 21:30:09 +02:00
find $PKG$PREFIX/doc/$PRGNAM -name \.git\* -exec rm -fr {} \;
2016-09-18 22:48:56 +02:00
cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
2011-06-23 21:30:09 +02:00
$PRGNAM: $PRGNAM (Free eBooks)
2016-09-18 22:48:56 +02:00
$PRGNAM:
2011-06-23 21:30:09 +02:00
$PRGNAM: about Coffee-script and stuff
2016-09-18 22:48:56 +02:00
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
2011-06-23 21:30:09 +02:00
$PRGNAM: http://github.com/arcturo/library#readme
2016-09-18 22:48:56 +02:00
$PRGNAM:
2011-06-23 21:30:09 +02:00
EOF
2016-09-18 22:48:56 +02:00
chown -R root:root *
2011-06-23 21:30:09 +02:00
2016-09-18 22:48:56 +02:00
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz