summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 145b3b5e51ee21733a1e6aecb89a1fcaec5d955d (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Sapphira Armageddos <shadowkyogre.public@gmail.com>
# Maintainer: Albert Westra <odysseywestra@gmail.com>
# Contributor: Jon Nordby <jononor@gmail.com>
# Contributor: mosra <mosra@centrum.cz>

_basever=2.0.0.main
pkgname=mypaint-git
pkgver=2.0.0.main.r6208.8187b1e2
pkgrel=1
pkgdesc="Simple drawing & painting program that works well with graphics tablets (git)."
arch=('i686' 'x86_64')
url="http://mypaint.org/"
install="mypaint-git.install"
license=('GPL-2.0-only')
depends=('desktop-file-utils' 'gtk3' 'json-c' 'lcms2' 'librsvg' 'python-cairo' 'python-gobject' 'python-numpy' 'mypaint-brushes-git')
makedepends=('git' 'swig' 'pygobject-devel' 'python' 'python-setuptools')
provides=("mypaint=${_basever}")
conflicts=('mypaint')
source=('git+https://github.com/mypaint/mypaint.git'
        'mypaint-git.install'
        'radius_lock.patch')

pkgver() {
    cd "${srcdir}/mypaint"
    printf "${_basever}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's/^v//g;s/-/./g'
}

prepare() {
    cd "${srcdir}/mypaint"
    patch --forward --strip=1 --input="${srcdir}/radius_lock.patch"
    export CFLAGS='-Ofast -ftree-vectorize -fopt-info-vec-optimized -march=native -mtune=native -funsafe-math-optimizations -funsafe-loop-optimizations'
}

build() {
    cd "${srcdir}/mypaint"
    python setup.py clean --all
    # https://github.com/mypaint/mypaint/commit/57685af8dbd65719d7874bc501094bade85d94e7
    python setup.py build_config
    python setup.py build
}

package() {
    cd "${srcdir}/mypaint"
    echo "root: ${pkgdir}"
	
    python setup.py install \
     --root="${pkgdir}" --skip-build
}

sha256sums=('SKIP'
            'e7b2787bf6e4b7529c85757b0ceb438264bbbd462793ba561c50ebf77852e41d'
            '922cd92ba2a96691d45694c78c4ca26a104f011d2477b8a4581c1e45d45c4f58')