Debian Codegraph @

pkg/debmaker

raw
1 #!/bin/bash
2 WRKDIR=`pwd`
3 VERSION=3.50
4 ARCH=i386
5 tar xf mtpaint-$VERSION.tar.bz2
6 cd mtpaint-$VERSION || exit 1
7 ./configure release intl man staticgif --prefix=/usr --fakeroot=$WRKDIR/ubuntulibs
8 make
9 DEST=$WRKDIR/zad
10 make install DESTDIR=$DEST
11 gzip -9 $DEST/usr/share/man/man*/*
12 cd $WRKDIR
13 unzip mtpaint_handbook-$VERSION.zip
14 mkdir -p $DEST/usr/share/doc
15 mv mtpaint_handbook-$VERSION/docs $DEST/usr/share/doc/mtpaint
16
17 SIZE=`( cd $DEST && du -s)`
18 SIZE=${SIZE%%[!0-9]*}
19
20 cat > control << CONTROL
21 Package: mtpaint
22 Version: $VERSION
23 Architecture: $ARCH
24 Maintainer: Dmitry Groshev <[email protected]>
25 Installed-Size: $SIZE
26 Section: graphics
27 Priority: extra
28 Homepage: http://mtpaint.sourceforge.net/
29 Description: mtPaint - Mark Tyler's Painting Program
30 mtPaint is a GTK+1/2/3 based painting program designed for creating
31 icons and pixel based artwork. It can edit indexed palette or 24 bit
32 RGB images and offers painting and palette manipulation tools.
33 CONTROL
34 cd $DEST
35 md5sum `find * -type f` > $WRKDIR/md5sums
36 tar cf $WRKDIR/data.tar *
37 cd $WRKDIR
38 tar cf control.tar control md5sums
39 gzip -n -9 control.tar data.tar
40 echo "2.0" > debian-binary
41
42 bsdtar --format ar -cf mtpaint_${VERSION}_i386.deb debian-binary control.tar.gz data.tar.gz