aboutsummaryrefslogtreecommitdiff
path: root/graphics/mypaint
diff options
context:
space:
mode:
authorklaatu <klaatu@member.fsf.org>2022-03-07 00:36:32 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-08 09:46:13 +0700
commita6d434acb558f863e47f1d6fd556c3e6f46b05dc (patch)
tree94fc6584210c0b9b1353bd2ac1f241a59fb186e2 /graphics/mypaint
parentaaafded303ac9463d808358041c47264ce7e7f65 (diff)
graphics/mypaint: Updated for version 2.0.1.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/mypaint')
-rw-r--r--graphics/mypaint/mypaint.SlackBuild28
-rw-r--r--graphics/mypaint/mypaint.info10
2 files changed, 14 insertions, 24 deletions
diff --git a/graphics/mypaint/mypaint.SlackBuild b/graphics/mypaint/mypaint.SlackBuild
index 8a819230a273b..8335dd8beeaa4 100644
--- a/graphics/mypaint/mypaint.SlackBuild
+++ b/graphics/mypaint/mypaint.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mypaint
-# Copyright 2013 klaatu klaatu@member.fsf.org
+# Copyright 2013-22 klaatu klaatu@member.fsf.org
# All rights reserved.
#
# GNU All-Permissive License
@@ -14,7 +14,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mypaint
-VERSION=${VERSION:-1.2.1}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -59,7 +59,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -68,27 +68,17 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Respect our $LIBDIRSUFFIX
-sed -i "s|prefix/lib/|prefix/lib$LIBDIRSUFFIX/|" SCons* brushlib/SConscript
-sed -i "s|'lib'|'lib$LIBDIRSUFFIX'|" $PRGNAM.py
-sed -i "s|lib/pkgconfig|lib$LIBDIRSUFFIX/pkgconfig|g" brushlib/SConscript
-
-# Use our CFLAGS
-sed -i "s|-O3|$SLKCFLAGS|g" SConstruct
-
-scons prefix="$PKG"/usr install
-
-# Stuff unused and broken
-rm -fR $PKG/usr/include $PKG/usr/lib$LIBDIRSUFFIX/{libmypaint.a,pkgconfig}
+python3 setup.py build
+python3 setup.py install --prefix=/usr --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CONTRIBUTING.md COPYING Licenses.md Changelog.md DEBUGGING.md \
- README.md README_LINUX.md \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a BUILDING.md CODE_OF_CONDUCT.md CONTRIBUTING.md \
+ COPYING Changelog.md DEBUGGING.md ISSUE_TEMPLATE.md \
+ Licenses.dep5 Licenses.md README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/graphics/mypaint/mypaint.info b/graphics/mypaint/mypaint.info
index 905338ed98715..2b98678947adb 100644
--- a/graphics/mypaint/mypaint.info
+++ b/graphics/mypaint/mypaint.info
@@ -1,10 +1,10 @@
PRGNAM="mypaint"
-VERSION="1.2.1"
-HOMEPAGE="http://mypaint.org/"
-DOWNLOAD="https://github.com/mypaint/mypaint/releases/download/v1.2.1/mypaint-1.2.1.tar.xz"
-MD5SUM="ac08c3135929f5641488fbbb9746fe41"
+VERSION="2.0.1"
+HOMEPAGE="http://mypaint.org"
+DOWNLOAD="https://github.com/mypaint/mypaint/archive/v2.0.1/mypaint-2.0.1.tar.gz"
+MD5SUM=""
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="numpy"
+REQUIRES="numpy mypaint-brushes2"
MAINTAINER="Klaatu"
EMAIL="klaatu@member.fsf.org"