summaryrefslogtreecommitdiff
path: root/pcr/gegl-git/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-09 01:31:39 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-09 01:31:39 -0300
commit7580893112396ebda79c394dc637efb715cb4edb (patch)
treea1929c1d22ae7dcbf29de30dd08ff5e91e0f8007 /pcr/gegl-git/PKGBUILD
parent90c2c7372f4caf07cc40b2af99a80f6b474c41b2 (diff)
downloadabslibre-7580893112396ebda79c394dc637efb715cb4edb.tar.gz
abslibre-7580893112396ebda79c394dc637efb715cb4edb.tar.bz2
abslibre-7580893112396ebda79c394dc637efb715cb4edb.zip
gegl-git: add pkg to [pcr]
Diffstat (limited to 'pcr/gegl-git/PKGBUILD')
-rw-r--r--pcr/gegl-git/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr/gegl-git/PKGBUILD b/pcr/gegl-git/PKGBUILD
new file mode 100644
index 000000000..4daecc482
--- /dev/null
+++ b/pcr/gegl-git/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# Maintainer (Arch): Daniel Isenmann <daniel@archlinux.org>
+
+_pkgname=gegl
+pkgname=gegl-git
+pkgver=r6711.bca30ea
+pkgrel=1
+pkgdesc="Graph based image processing framework"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.gegl.org/"
+license=('GPL3' 'LGPL3')
+depends=('babl' 'libspiro' 'json-glib')
+makedepends=('intltool' 'ruby' 'lua' 'libopenraw' 'openexr' 'mesa' 'glu' 'ffmpeg' 'librsvg'
+ 'jasper' 'exiv2' 'vala' 'python2' 'suitesparse' 'git')
+optdepends=('libopenraw: openraw plugin'
+ 'openexr: openexr plugin'
+ 'ffmpeg: ffmpeg plugin'
+ 'suitesparse: matting-levin plugin'
+ 'librsvg: svg plugin'
+ 'jasper: jasper plugin')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=(${_pkgname}-${pkgver}::git+git://git.gnome.org/${_pkgname}.git)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir path
+ ln -s /usr/bin/python2 path/python
+
+ cd ${_pkgname}-${pkgver}
+}
+
+build() {
+ export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
+ cd ${_pkgname}-${pkgver}
+ ./autogen.sh
+ ./configure --prefix=/usr --with-sdl --with-librsvg \
+ --with-libavformat --with-jasper --disable-docs
+
+ # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+check() {
+ export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
+ cd ${_pkgname}-${pkgver}
+ make -k check || :
+}
+
+package() {
+ export PATH="$srcdir/path:$PATH" PYTHON=/usr/bin/python2
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}