mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
38 lines
927 B
Bash
38 lines
927 B
Bash
#!/bin/sh
|
|
|
|
# Slackware build script for comix
|
|
# Written by Brian Reichert <rignes@pobox.com>
|
|
|
|
PRGNAM=comix
|
|
VERSION=3.6.4
|
|
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/usr $OUTPUT
|
|
cd $TMP || exit 1
|
|
rm -rf $PRGNAM-$VERSION
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
|
|
cd $PRGNAM-$VERSION || exit 1
|
|
chown -R root:root .
|
|
chmod -R u+w,go+r-w,a-s .
|
|
|
|
python install.py install --installdir $PKG/usr --no-mime --no-balloon || exit 1
|
|
|
|
# Correct manpage location
|
|
mv $PKG/usr/share/man $PKG/usr
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
|
|
mkdir -p $PKG/install
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|