summaryrefslogtreecommitdiff
path: root/pcr/libmypaint/PKGBUILD
blob: 2ed94a495a1ed776c237775a1400d66f9d17f9ef (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: Márcio Silva <coadde@parabola.nu>

pkgname=libmypaint
pkgver=r519.60369db
pkgrel=3
pkgdesc='A library for making brushstrokes'
arch=(i686 x86_64 armv7h)
url=http://${pkgname#lib}.intilinux.com/
license=(ISC)
depends=(gegl gcc-libs glib2 json-c python2)
makedepends=(git gperftools scons) # fail build with gobject-introspection; docs needs to build: doxygen python2-sphinx python2-breathe
source=($pkgname::git+https://github.com/${pkgname#lib}/$pkgname)
sha512sums=(SKIP)

build() {
  cd $srcdir/$pkgname
  mkdir $srcdir/$pkgname-fakeinstall
  scons \
    prefix=$srcdir/$pkgname-fakeinstall/usr \
    enable_docs=no \
    enable_gegl=yes \
    enable_gperftools=yes \
    enable_i18n=no \
    enable_introspection=no \
    use_glib=yes \
    use_sharedlib=yes \
    install
  # mv conflicting include/libmypaint dir to include/libmypaint-git
  mv $srcdir/$pkgname-fakeinstall/usr/include/libmypaint{,-git}
  # mv conflicting lib/pkgconfig/libmypaint.pc dir to lib/pkgconfig/libmypaint-git.pc
  mv $srcdir/$pkgname-fakeinstall/usr/lib/pkgconfig/libmypaint{,-git}.pc
}

package() {
  cp -a $srcdir/$pkgname-fakeinstall/* $pkgdir/
}