diff options
author | Petar Petrov <slackalaxy@gmail.com> | 2020-09-16 07:36:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-09-16 07:36:40 +0700 |
commit | f5dcc2f2bf8cffa0dba94ec7557afbb33a2c1efa (patch) | |
tree | 77cc307490336118363d86200c5232dd5341efb8 /graphics/mtpaint/mtpaint.SlackBuild | |
parent | 10afe86eead914f4fa4a96431be5857d37323187 (diff) |
graphics/mtpaint: Updated for version 3.49.29.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/mtpaint/mtpaint.SlackBuild')
-rw-r--r-- | graphics/mtpaint/mtpaint.SlackBuild | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/graphics/mtpaint/mtpaint.SlackBuild b/graphics/mtpaint/mtpaint.SlackBuild index ecffc07a7ebb5..a9fcdd8169a81 100644 --- a/graphics/mtpaint/mtpaint.SlackBuild +++ b/graphics/mtpaint/mtpaint.SlackBuild @@ -24,10 +24,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mtpaint -VERSION=${VERSION:-3.40} -BUILD=${BUILD:-3} +VERSION=${VERSION:-3.49.29} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +DIRVER=mtPaint +COMMIT=ff0a801413e612f74fe4c5d251e4bf36c6628013 + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -55,8 +58,8 @@ else LIBDIRSUFFIX="" fi -if [ "$GTK1" = yes ]; then - GTK1=gtk1 +if [ "$GTK3" = yes ]; then + GTK3=gtk3 fi if [ "$TKWIDGETS" = yes ]; then @@ -68,10 +71,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION -unzip $CWD/${PRGNAM}_handbook-$VERSION.zip +rm -rf $DIRVER-$VERSION +tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz +cd $DIRVER-$COMMIT chown -R root:root . find -L . \ @@ -80,22 +82,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Bring deprecated function call into conformance with libpng14 -sed -i 's/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/' src/png.c - -# Fix build with giflib-5.1 (thanks to Arch) -sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, FALSE, NULL):' src/png.c -sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' src/png.c -sed -i 's:EGifCloseFile(giffy):EGifCloseFile(giffy, NULL):g' src/png.c -sed -i 's:DGifCloseFile(giffy):DGifCloseFile(giffy, NULL):g' src/png.c -sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c -sed -i 's:FreeMapObject(:GifFreeMapObject(:g' src/png.c - # If you do not want the international language support, remove 'intl' # from the line below. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -./configure cflags intl man $GTK1 $TKWIDGETS \ +./configure cflags intl man $GTK3 $TKWIDGETS \ --prefix=/usr \ --mandir=/usr/man/man1 \ --docdir=/usr/doc/$PRGNAM-$VERSION @@ -103,12 +94,7 @@ CXXFLAGS="$SLKCFLAGS" \ make make DESTDIR=$PKG install -# Install the handbook -cd ${PRGNAM}_handbook-$VERSION -make DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION install -cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.handbook -cd .. - +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a NEWS README COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |