From 819bc89fb737d123fce2c57dde1e38327126538b Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 20 Feb 2015 12:20:02 -0200 Subject: cairo-compmgr: add new package to [pcr] --- pcr/cairo-compmgr/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pcr/cairo-compmgr/PKGBUILD (limited to 'pcr/cairo-compmgr/PKGBUILD') 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 +# Contributor (Arch): Florian Pritz +# Contributor (Arch): Adam Hani Schakaki (krzd) +# Contributor (Arch): Det +# Contributor (Arch): catalyst +# Contributor (Arch): Devin Cofer +# Contributor (Arch): jackobw +# Contributor (Arch): Gianni Vialetto + +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/" +} -- cgit v1.2.3-54-g00ecf