From c9a730b82f54c5c8a012137fe9c784d187d97149 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 23 Feb 2012 00:36:26 +0100 Subject: [PATCH] cairo-compmgr: New PKGBUILD (dropped from [community]) and updated. --- pkgbuild/cairo-compmgr/PKGBUILD | 65 ++++++++++++++++++++ pkgbuild/cairo-compmgr/cairo-compmgr.install | 17 +++++ 2 files changed, 82 insertions(+) create mode 100644 pkgbuild/cairo-compmgr/PKGBUILD create mode 100644 pkgbuild/cairo-compmgr/cairo-compmgr.install diff --git a/pkgbuild/cairo-compmgr/PKGBUILD b/pkgbuild/cairo-compmgr/PKGBUILD new file mode 100644 index 0000000..afb9476 --- /dev/null +++ b/pkgbuild/cairo-compmgr/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Cedric Girard +# Contributor: Florian Pritz +# Contributor: Adam Hani Schakaki (krzd) +# Contributor: Det +# Contributor: catalyst +# Contributor: Devin Cofer +# Contributor: jackobw +# Contributor: Gianni Vialetto + +pkgname=cairo-compmgr +pkgver=git20111002 +_commit=348f149af30bc829c2100d0e622c5dcaf43925b7 +pkgrel=3 +epoch=1 +pkgdesc="A Cairo based composite manager" +arch=(i686 x86_64) +url="http://cairo-compmgr.tuxfamily.org/" +license=(LGPL) +makedepends=(gettext gtk-doc "intltool>=0.41" git) +depends=("gtk2>=2.16.0" "vala>=0.14" libsm gconf) +install=cairo-compmgr.install +options=(!libtool) +#source=(http://download.tuxfamily.org/ccm/$pkgname/$pkgname-$pkgver.tar.gz) +source=() +md5sums=() + +__gitroot="git://git.tuxfamily.org/gitroot/ccm/cairocompmgr.git" +__gitname="cairo-compmgr" + + +build() { +# cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir" + + msg "Connecting to GIT server...." + + if [ -d $__gitname ] ; then + cd $__gitname && git pull origin + msg "The local files are updated." + else + git clone $__gitroot $__gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$__gitname-build" + git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build" + cd "$srcdir/$__gitname-build" + git checkout "$_commit" + +# sed -i 's!vala-0.10!libvala-0.12!' vapi/cairo-compmgr.deps configure.ac + ./autogen.sh --prefix=/usr LIBS=-ldl + make -j1 +} + +package() { + #cd "$srcdir/$pkgname-$pkgver" + cd "$srcdir/$__gitname-build" + + 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/pkgbuild/cairo-compmgr/cairo-compmgr.install b/pkgbuild/cairo-compmgr/cairo-compmgr.install new file mode 100644 index 0000000..21c8294 --- /dev/null +++ b/pkgbuild/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: