ArchLinux/pkgbuild/cairo-compmgr/PKGBUILD

65 lines
1.9 KiB
Bash

# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: Florian Pritz <flo@xinu.at>
# Contributor: Adam Hani Schakaki (krzd) <krzd@krzd.net>
# Contributor: Det <nimetonmaili at gmail a-dot com>
# Contributor: catalyst <catalyst@xaker.ru>
# Contributor: Devin Cofer <ranguvar{AT]archlinux[DOT}us>
# Contributor: jackobw
# Contributor: Gianni Vialetto <g dot vialetto at gmail dot com>
pkgname=cairo-compmgr
pkgver=git20111002
_commit=348f149af30bc829c2100d0e622c5dcaf43925b7
pkgrel=4
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.16" 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!libvala-0.14!libvala-0.16!' vapi/cairo-compmgr.deps configure.ac
./autogen.sh --prefix=/usr LIBS="-ldl -lgmodule-2.0"
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/"
}