From 478dbb209e2f5ce77b64336ba6bf4df99b24eeea Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Sun, 9 Oct 2016 21:11:33 -0300 Subject: add {,lib}mypaint-gegl-git to [pcr], rm mypaint-gegl package --- pcr/libmypaint-gegl-git/PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pcr/libmypaint-gegl-git/PKGBUILD (limited to 'pcr/libmypaint-gegl-git') diff --git a/pcr/libmypaint-gegl-git/PKGBUILD b/pcr/libmypaint-gegl-git/PKGBUILD new file mode 100644 index 000000000..417c98674 --- /dev/null +++ b/pcr/libmypaint-gegl-git/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Márcio Silva +# based of mypaint + +_pkgname=mypaint +pkgname=libmypaint-gegl-git +pkgver=r686.9491163 +pkgrel=1 +pkgdesc="MyPaint Libraries, with brush dynamics and GEGL support" +arch=('i686' 'x86_64' 'armv7h') +url="http://mypaint.org/" +license=('GPL' 'LGPL') +depends=('json-c' 'gegl') +makedepends=('git' 'intltool') +provides=("lib${_pkgname}") +conflicts=("lib${_pkgname}-gegl") +source=(lib${_pkgname}-${pkgver}::git+https://github.com/${_pkgname}/lib${_pkgname}.git) +md5sums=('SKIP') + +pkgver() { + cd lib${_pkgname}-${pkgver} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd lib${_pkgname}-${pkgver} + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd lib${_pkgname}-${pkgver} + ./configure \ + --prefix=/usr \ + --enable-docs \ + --enable-gegl \ + --with-glib + make +} + +package() { + cd $srcdir/lib$_pkgname-$pkgver + make DESTDIR="${pkgdir}" install + + # fixing headers files, it's needed for GIMP 2.9 and above package + install -vdm 0755 $pkgdir/usr/include/glib + ln -vs lib$_pkgname-gegl/$_pkgname-gegl-glib.h $pkgdir/usr/include + ln -vs lib$_pkgname-gegl/$_pkgname-gegl-surface.h $pkgdir/usr/include + ln -vs ../lib$_pkgname/glib/$_pkgname-brush.h $pkgdir/usr/include/glib + ln -vs lib$_pkgname/$_pkgname-brush-settings-gen.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-brush-settings.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-brush.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-config.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-fixed-tiled-surface.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-glib-compat.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-mapping.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-rectangle.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-surface.h $pkgdir/usr/include + ln -vs lib$_pkgname/$_pkgname-tiled-surface.h $pkgdir/usr/include +} -- cgit v1.2.3