summaryrefslogtreecommitdiff
path: root/portsToCome/mypaint/Pkgfile
blob: 693790d9a8a1c00b31ff7680b8fbd65022d16c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Description: A fast and easy open-source graphics application for digital painters.
# URL: http://mypaint.intilinux.com/
# Maintainer: Erich Eckner, crux at eckner dot net
# Packager: Danny Rawlins, crux at romster dot me
# Depends on: scons numpy protobuf pygtk swig lcms2 json-c

name=mypaint
version=1.2.0
release=1
source=(
	https://github.com/$name/$name/releases/download/v$version/$name-$version.tar.xz
	https://github.com/$name/$name/commit/c03602f3d5456d59fccfc8ad7d41c8c6f1a6d593.patch)

build() {
	cd $name-$version

	patch -p1 -i $SRC/c03602f3d5456d59fccfc8ad7d41c8c6f1a6d593.patch

#	sed -i "s|'json|'json-c|" brushlib/SConscript

	scons \
		${SCONSFLAGS} \
		NLS=0 \
		destdir="${PKG}" \
		prefix=/usr

	scons prefix=$PKG/usr install
	python -mcompileall $PKG
	rm -r $PKG/usr/share/locale
}