1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/bash
WRKDIR=`pwd`
VERSION=3.50
ARCH=x86_64
SLACK=14.2
tar xf mtpaint-$VERSION.tar.bz2
cd mtpaint-$VERSION || exit 1
./configure release intl man nowebp --prefix=/usr --mandir=/usr/man --docdir=/usr/doc #--fakeroot=$WRKDIR/slacklibs
make
DEST=$WRKDIR/zad
make install DESTDIR=$DEST
gzip -9 $DEST/usr/man/man*/*
cd $WRKDIR
unzip mtpaint_handbook-$VERSION.zip
mkdir -p $DEST/usr/doc
mv mtpaint_handbook-$VERSION/docs $DEST/usr/doc/mtpaint
cd $DEST || exit 1
makepkg -l y -c y $WRKDIR/mtpaint-${VERSION}-${ARCH}-1_slack${SLACK}.tgz
|