slackbuilds/UNUSED/web/wordpress/SlackBuild

59 lines
1.1 KiB
Text
Raw Normal View History

2010-11-27 13:17:06 +01:00
#!/bin/sh
CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=trunk$(date +%Y.%m.%d_%H.%M)
BUILD=1
2010-11-27 13:17:06 +01:00
ARCH=$(uname -m)
2011-07-22 08:41:46 +02:00
REPOSITORIES=/home/installs/SlackBuilds/repositories
2010-11-27 13:17:06 +01:00
2020-06-25 11:23:11 +02:00
TAG=gwh
TMP=/tmp/$TAG
2010-11-27 13:17:06 +01:00
PKG=$TMP/pkg-$PRGNAM
OUTPUT=/tmp
PREFIX=/usr
# cleaning
rm -fr $PKG
# get sources
[ ! -e $REPOSITORIES ] && mkdir -p $REPOSITORIES
( cd $REPOSITORIES
if [ -e $REPOSITORIES/$PRGNAM ] ; then
( cd $REPOSITORIES/$PRGNAM
svn up
)
else
svn co http://core.svn.wordpress.org/trunk/ $REPOSITORIES/$PRGNAM
fi
)
mkdir -p $PKG/srv/www/htdocs
cp -R $REPOSITORIES/$PRGNAM $PKG/srv/www/htdocs/
find $PKG/srv/www/htdocs -name \.svn\* -exec rm -fr {} \;
( cd $PKG
mkdir -p install
cat <<EOF > install/slack-desc
$PRGNAM: $PRGNAM (Blog/CMs engine)
$PRGNAM:
$PRGNAM: WordPress is web software you can use to create a beautiful website or blog.
$PRGNAM: We like to say that WordPress is both free and priceless at the same time.
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: http://wordpress.org/
$PRGNAM:
EOF
chown -R root:root *
makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
2010-11-27 13:17:06 +01:00
)