2010-05-11 20:01:06 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Slackware build script for Clawsker
|
|
|
|
# Written by Erik Hanson erik@slackbuilds.org
|
|
|
|
|
2010-05-11 22:24:29 +02:00
|
|
|
set -eu
|
|
|
|
|
2010-05-11 20:01:06 +02:00
|
|
|
PRGNAM=clawsker
|
2010-05-11 22:24:29 +02:00
|
|
|
VERSION=0.5.0
|
2010-05-11 20:01:06 +02:00
|
|
|
ARCH=noarch
|
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=$TMP/package-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $TMP $PKG $OUTPUT
|
2010-05-11 22:24:29 +02:00
|
|
|
cd $TMP
|
2010-05-11 20:01:06 +02:00
|
|
|
rm -rf $PRGNAM-$VERSION
|
2010-05-11 22:24:29 +02:00
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
2010-05-11 20:01:06 +02:00
|
|
|
cd $PRGNAM-$VERSION
|
|
|
|
chown -R root:root .
|
|
|
|
chmod -R u+w,go+r-w,a-s .
|
|
|
|
|
2010-05-11 22:24:29 +02:00
|
|
|
make
|
|
|
|
make install DESTDIR=$PKG PREFIX=/usr
|
2010-05-11 20:01:06 +02:00
|
|
|
|
2010-05-11 22:24:29 +02:00
|
|
|
mv $PKG/usr/share/man/ $PKG/usr/man/
|
|
|
|
gzip -9 $PKG/usr/man/man?/*.?
|
2010-05-11 20:01:06 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
|
|
|
|
cp -a AUTHORS COPYING ChangeLog NEWS README VERSION $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
|
|
|
|
cd $PKG
|
|
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|