2010-12-22 12:22:10 +01:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
# Contributor: catalyst <catalyst@xaker.ru>
|
|
|
|
# Contributor: Jacob Winther <jacob.winther@gmail.com>
|
|
|
|
|
|
|
|
pkgname=cairo-compmgr-git
|
2012-04-03 16:55:16 +02:00
|
|
|
pkgver=20120403
|
2010-12-22 12:22:10 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Cairo based composite manager - Git version"
|
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://cairo-compmgr.tuxfamily.org/"
|
2012-02-16 14:44:11 +01:00
|
|
|
license=(LGPL3)
|
2010-12-22 12:22:10 +01:00
|
|
|
conflicts=(cairo-compmgr)
|
|
|
|
provides=(cairo-compmgr)
|
|
|
|
makedepends=(gettext git gtk-doc "intltool>=0.41" gconf)
|
2011-10-12 15:54:43 +02:00
|
|
|
depends=("gtk2>=2.16.0" "vala-git" libsm)
|
2010-12-22 12:22:10 +01:00
|
|
|
options=(!makeflags
|
|
|
|
!libtool)
|
|
|
|
|
|
|
|
_gitroot="git://git.tuxfamily.org/gitroot/ccm/cairocompmgr.git"
|
|
|
|
_gitname="cairocompmgr"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
|
|
|
|
msg "Connecting to GIT server..."
|
|
|
|
if [[ -d $_gitname ]]; then
|
|
|
|
(cd $_gitname && git pull )
|
|
|
|
else
|
|
|
|
git clone $_gitroot $_gitname
|
|
|
|
fi
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
msg "Starting make..."
|
|
|
|
|
|
|
|
rm -rf $_gitname-build
|
|
|
|
cp -r $_gitname $_gitname-build
|
|
|
|
cd $_gitname-build
|
|
|
|
|
2012-04-03 16:55:16 +02:00
|
|
|
#patch for compatibility with vala 0.18 (git)
|
|
|
|
sed -i 's!libvala-0.14!libvala-0.18!' configure.ac
|
|
|
|
sed -i 's!libvala-0.14!libvala-0.18!' vapi/cairo-compmgr.deps
|
2011-03-17 14:46:44 +01:00
|
|
|
|
2012-02-16 14:44:11 +01:00
|
|
|
./autogen.sh --prefix=/usr LIBS=-ldl
|
2010-12-22 12:22:10 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $_gitname-build
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2011-03-17 14:46:44 +01:00
|
|
|
install -d "$pkgdir/usr/share/gconf/schemas/"
|
2010-12-22 12:22:10 +01:00
|
|
|
gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/cairo-compmgr.schemas" "$pkgdir/etc/gconf/schemas/*.schemas"
|
|
|
|
rm -rf "$pkgdir/etc/gconf/schemas/"
|
|
|
|
|
|
|
|
}
|