summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c6f1934219a0bb80ddf4251c725f8710f3d0a6ff (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
# Maintainer: Iru Cai <mytbk920423@gmail.com>

pkgname=libmypaint-git
pkgver=1.3.0
pkgrel=1
pkgdesc="a library for making brushstrokes which is used by MyPaint and other projects, with GEGL support"
arch=('i686' 'x86_64')
url="http://mypaint.org/"
license=('ISC')
depends=('gobject-introspection' 'json-c' 'gegl')
makedepends=('git' 'intltool' 'python')
source=('git+https://github.com/mypaint/libmypaint.git')
md5sums=('SKIP')

build() {
  cd "$srcdir/libmypaint"

  ./autogen.sh
  ./configure --prefix=/usr --enable-gegl
  make
}

package() {
  cd "$srcdir/libmypaint"

  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

pkgver() {
  cd "$srcdir/libmypaint"

  git describe --tags | sed 's/^v//g;s/-/./g'
}

# vim:set ts=2 sw=2 et: