diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-02-20 12:20:02 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-02-20 12:20:02 -0200 |
commit | 819bc89fb737d123fce2c57dde1e38327126538b (patch) | |
tree | 9f5cc24e4b52f5b3496e7a2ec2f8859e41335792 /pcr/cairo-compmgr | |
parent | 3905eefae86eb73f17f17476fba74f52299cf889 (diff) | |
download | abslibre-819bc89fb737d123fce2c57dde1e38327126538b.tar.gz abslibre-819bc89fb737d123fce2c57dde1e38327126538b.tar.bz2 abslibre-819bc89fb737d123fce2c57dde1e38327126538b.zip |
cairo-compmgr: add new package to [pcr]
Diffstat (limited to 'pcr/cairo-compmgr')
-rw-r--r-- | pcr/cairo-compmgr/PKGBUILD | 59 | ||||
-rw-r--r-- | pcr/cairo-compmgr/bfd_ansidecl.patch | 14 | ||||
-rw-r--r-- | pcr/cairo-compmgr/cairo-compmgr.install | 17 |
3 files changed, 90 insertions, 0 deletions
diff --git a/pcr/cairo-compmgr/PKGBUILD b/pcr/cairo-compmgr/PKGBUILD new file mode 100644 index 000000000..92e2f77bd --- /dev/null +++ b/pcr/cairo-compmgr/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer (Arch): Cedric Girard <girard.cedric@gmail.com> +# Contributor (Arch): Florian Pritz <flo@xinu.at> +# Contributor (Arch): Adam Hani Schakaki (krzd) <krzd@krzd.net> +# Contributor (Arch): Det <nimetonmaili at gmail a-dot com> +# Contributor (Arch): catalyst <catalyst@xaker.ru> +# Contributor (Arch): Devin Cofer <ranguvar{AT]archlinux[DOT}us> +# Contributor (Arch): jackobw +# Contributor (Arch): Gianni Vialetto <g dot vialetto at gmail dot com> + +pkgname=cairo-compmgr +pkgver=0.3.1 +pkgrel=9 +epoch=2 +pkgdesc="A Cairo based composite manager" +arch=(i686 x86_64) +url="https://github.com/gandalfn/Cairo-Composite-Manager" +license=(LGPL) +makedepends=(gettext gtk-doc "intltool>=0.41" git) +depends=("gtk2>=2.16.0" "vala>=0.26" libsm libgl gconf) +install=cairo-compmgr.install +options=(!libtool) +source=(https://github.com/downloads/gandalfn/Cairo-Composite-Manager/$pkgname-$pkgver.tar.bz2 + 'https://github.com/gandalfn/Cairo-Composite-Manager/pull/4.diff' + 'bfd_ansidecl.patch' +) +md5sums=('4ef285e0735b1a61b5db2205a2d8f8b3' + '011074cd9687475ebf9ac93fc1f535aa' + 'b316779ffe9f86ada7ed601ae433789b') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + #patch for compatibility with vala 0.26 + sed -i 's!libvala-0.16!libvala-0.26!' configure.ac + sed -i 's!libvala-0.16!libvala-0.26!' vapi/cairo-compmgr.deps + + #patch needed to build with newer deps version + patch -p1 < ../4.diff + + #bfd.h should include ansidecl.h + patch -p2 < ../bfd_ansidecl.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./autogen.sh --prefix=/usr LIBS="-ldl -lgmodule-2.0 -lz" + make + +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir/usr/share/gconf/schemas/" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas" + rm -rf "$pkgdir/etc/gconf/schemas/" +} diff --git a/pcr/cairo-compmgr/bfd_ansidecl.patch b/pcr/cairo-compmgr/bfd_ansidecl.patch new file mode 100644 index 000000000..17a902826 --- /dev/null +++ b/pcr/cairo-compmgr/bfd_ansidecl.patch @@ -0,0 +1,14 @@ +diff -Naur src/cairocompmgr/src/ccm-debug.c src/cairocompmgr-patched/src/ccm-debug.c +--- src/cairocompmgr/src/ccm-debug.c 2014-05-30 14:08:02.434448854 +0200 ++++ src/cairocompmgr-patched/src/ccm-debug.c 2014-05-30 14:13:57.447482643 +0200 +@@ -55,8 +55,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <execinfo.h> +-#include <bfd.h> + #include <libiberty/libiberty.h> ++#include <libiberty/ansidecl.h> ++#include <bfd.h> + #include <dlfcn.h> + #include <link.h> + #endif /* HAVE_EDEBUG */ diff --git a/pcr/cairo-compmgr/cairo-compmgr.install b/pcr/cairo-compmgr/cairo-compmgr.install new file mode 100644 index 000000000..21c829413 --- /dev/null +++ b/pcr/cairo-compmgr/cairo-compmgr.install @@ -0,0 +1,17 @@ +post_install() { + gconfpkg --install cairo-compmgr +} + +pre_upgrade() { + gconfpkg --uninstall cairo-compmgr +} + +post_upgrade() { + gconfpkg --install cairo-compmgr +} + +pre_remove() { + gconfpkg --uninstall cairo-compmgr +} + +# vim:set ts=2 sw=2 et: |