summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17710ed732a556d6808f023a38fcde14ab3d4c03 (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=2.0.0.main
pkgname=mypaint-brushes-git
pkgver=2.0.0.main.r195.08da4a4
pkgrel=1
pkgdesc="Brushes used by MyPaint and other software using libmypaint"
arch=('any')
url="https://github.com/mypaint/mypaint-brushes"
license=('CC-PDDC')
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')