summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01ba5b1bee9e87275691001a5e1ad129de1dfa80 (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
# 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=1.3.0.alpha
pkgname=mypaint-brushes-git
pkgver=1.3.0.alpha.r178.769ec94
pkgrel=1
pkgdesc="Brushes used by MyPaint and other software using libmypaint"
arch=('any')
url="https://github.com/mypaint/mypaint-brushes"
license=('custom:CC0')
depends=('libmypaint-git')
makedepends=('git')
provides=("mypaint-brushes=${_basever}")
conflicts=('mypaint-brushes')
source=('git+https://github.com/mypaint/mypaint-brushes.git')

pkgver() {
    cd "${srcdir}/mypaint-brushes"
    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-brushes"
    ./autogen.sh
}

build() {
    cd "${srcdir}/mypaint-brushes"
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/mypaint-brushes"
    make DESTDIR="${pkgdir}" install
    install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

sha256sums=('SKIP')