# SliTaz package receipt. PACKAGE="mtpaint" VERSION="3.50" CATEGORY="graphics" SHORT_DESC="Painting program to create pixel art and manipulate digital photos." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" WEB_SITE="https://mtpaint.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" SUGGESTED="mtpaint-lang" DEPENDS="gtk+3 lcms2 libpng" BUILD_DEPENDS="cairo-dev gtk+3-dev lcms2-dev libpng-dev zlib-dev" #HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mtpaint/download.html 2>/dev/null | \ sed '/HERE/!d;s|.*files.mtpaint.||;s|.">.*||' } # Rules to configure and make the package. compile_rules() { patch -p0 < $stuff/mtpaint.patch sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \ $src/src/mainwindow.c case "$ARCH" in (i?86) export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" ./configure \ --cpu=$ARCH \ --prefix=/usr \ intl nogif nojp2 gtk3 ;; (arm*) # we need: arm-slitaz-linux-gnueabi-pkg-config ./configure \ --prefix=/usr \ --host=${HOST_SYSTEM} \ intl nogif ;; esac && make && make install DESTDIR=$install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/mtpaint mkdir -p $fs/usr/share/applications mkdir -p $fs/usr/share/pixmaps mkdir -p $fs/usr/share/thumbnailers cp -a $install/usr/bin $fs/usr install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin cp $stuff/mtpaintrc $fs/etc/mtpaint cp $stuff/*.desktop $fs/usr/share/applications cp $src/doc/mtpaint.png $fs/usr/share/pixmaps cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers }