# Maintainer: Robert Brzozowski # Maintainer: Charles Bos # Contributor: Rob McCathie # Contributor: Iven Hsu # Contributor: Nathan Hulse pkgname=compiz-git pkgver=0.9.14.1.r0.g71fcf28a6 pkgrel=1 _gitname=compiz pkgdesc="Composite manager for Aiglx and Xgl, with plugins and CCSM (development version)" arch=('i686' 'x86_64') url="https://launchpad.net/compiz" license=('GPL' 'LGPL' 'MIT') depends=('boost-libs' 'xorg-server' 'fuse2' 'glibmm' 'libwnck3' 'python-gobject' 'python-cairo' 'protobuf' 'metacity' 'glu') makedepends=('boost' 'cmake' 'git' 'intltool' 'cython') optdepends=( 'xorg-xprop: grab various window properties for use in window matching rules' ) conflicts=("${_gitname}" 'compiz-core' 'compiz-gtk' 'compiz-bcop' 'ccsm' 'compiz-fusion-plugins-main' 'compiz-fusion-plugins-extra' 'compiz-fusion-plugins-experimental' 'compizconfig-python' 'libcompizconfig' 'simple-ccsm') provides=("${_gitname}=${pkgver:0:6}" "compiz-core=${pkgver:0:6}" "compiz-bcop=${pkgver:0:6}" "ccsm=${pkgver:0:6}" "compiz-plugins-main=${pkgver:0:6}" "compiz-plugins-extra=${pkgver:0:6}" "compizconfig-python=${pkgver:0:6}" "libcompizconfig=${pkgver:0:6}") replaces=('compiz-bzr') source=("git+https://git.launchpad.net/${_gitname}" "focus-prevention-disable.patch" "gtk-extents.patch" "reverse-unity-config.patch" "screenshot-launch-fix.patch" "no-compile-gschemas.patch") sha256sums=('SKIP' 'f4897590b0f677ba34767a29822f8f922a750daf66e8adf47be89f7c2550cf4b' '16ddb6311ce42d958505e21ca28faae5deeddce02cb558d55e648380274ba4d9' '6ec9c04540ca1649c687d9ab2c8311caea7075831e2cffe719ec7958c9ebab7b' '89ee91a8ea6b1424ef76661ea9a2db43412366aacddc12d24a7adf5e04bfbc61' '4ab3277da201314b3f65e30128bc30704ddee584fdbbfc8d0d83c7e0de91fa9a') pkgver() { cd "${_gitname}" git describe --long --tags | sed 's/.%//;s/\+.*ubuntu.//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "${_gitname}" # Reverse Unity specific configuration patches patch -p1 -i "${srcdir}/reverse-unity-config.patch" # Set focus prevention level to off which means that new windows will always get focus patch -p1 -i "${srcdir}/focus-prevention-disable.patch" # Fix incorrect extents for GTK+ tooltips, csd etc patch -p1 -i "${srcdir}/gtk-extents.patch" # Fix application launching for the screenshot plugin patch -p1 -i "${srcdir}/screenshot-launch-fix.patch" # Don't try to compile gschemas during make install patch -p1 -i "${srcdir}/no-compile-gschemas.patch" } build() { cd "${_gitname}" mkdir build; cd build cmake .. \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="/usr/lib" \ -DCOMPIZ_DISABLE_SCHEMAS_INSTALL=On \ -DCOMPIZ_BUILD_WITH_RPATH=Off \ -DCOMPIZ_PACKAGING_ENABLED=On \ -DBUILD_GTK=On \ -DBUILD_METACITY=On \ -DBUILD_KDE4=Off \ -DCOMPIZ_BUILD_TESTING=Off \ -DCOMPIZ_WERROR=Off \ -DCOMPIZ_DEFAULT_PLUGINS="composite,opengl,decor,resize,place,move,compiztoolbox,staticswitcher,regex,animation,ccp" make } package() { cd "${_gitname}/build" make DESTDIR="${pkgdir}" install # findcompiz_install needs COMPIZ_DESTDIR and install needs DESTDIR # make findcompiz_install CMAKE_DIR=$(cmake --system-information | grep '^CMAKE_ROOT' | awk -F\" '{print $2}') install -dm755 "${pkgdir}${CMAKE_DIR}/Modules/" install -m644 ../cmake/FindCompiz.cmake "${pkgdir}${CMAKE_DIR}/Modules/" # Add documentation install -dm755 "${pkgdir}/usr/share/doc/compiz/" install ../{AUTHORS,NEWS,README} "${pkgdir}/usr/share/doc/compiz/" # Add gsettings schema files if ls generated/glib-2.0/schemas/ | grep -qm1 .gschema.xml; then install -dm755 "${pkgdir}/usr/share/glib-2.0/schemas/" install -m644 generated/glib-2.0/schemas/*.gschema.xml "${pkgdir}/usr/share/glib-2.0/schemas/" fi # Install licenses install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 "${srcdir}/${_gitname}"/{COPYING,COPYING.GPL,COPYING.LGPL,COPYING.MIT} "${pkgdir}/usr/share/licenses/${pkgname}" }