#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com #Former: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=mtpaint pkgver=3.40 zenver=72 pkgrel=1 arch=i686 source=("http://downloads.sourceforge.net/mtpaint/mtpaint-$pkgver.tar.bz2" "mtpaint-fix-no-add-needed.patch" "mtpaint-libpng14.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://mtpaint.sourceforge.net/ sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/xap/$pkgname options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mtPaint is a simple painting program" "mtPaint is a painting program which Mark Tyler developed from scratch" "so he could easily create pixel art and manipulate digital photos. It" "uses the GTK+ toolkit (version 1 or 2) and runs on PC's via the" "GNU/Linux or Windows operating systems. Due to its efficient design" "it can run on older PC hardware (e.g. a 200MHz CPU and 32MB of RAM)." ) build() { cd $startdir/src/$pkgname-$pkgver # fix warnings for gcc >= 4.4, use -fno-strict-aliasing export CFLAGS="$CFLAGS -fno-strict-aliasing" patch -p1 < ../mtpaint-libpng14.patch patch -p0 < ../mtpaint-fix-no-add-needed.patch ./configure gtk2 cflags intl man tiff jpeg gif --prefix=/usr sed -i 's|-lpng|-lpng -lgif|' _conf.txt make || return 1 make install DESTDIR=$startdir/pkg # mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver # cp -a $startdir/src/mtpaint_handbook-$pkgver/docs $startdir/pkg/usr/doc/$pkgname-$pkgver/ }