2 # Put the desired install prefix HERE
3 _iprefix=/opt/compiz-git
8 pkgdesc="Emerald adapted to work with compiz++"
9 url="http://www.compiz.org/"
10 license=('GPL' 'LGPL' 'MIT')
11 arch=('i686' 'x86_64')
12 depends=('startup-notification' 'librsvg' 'libgl' 'dbus'
13 'mesa' 'libxslt' 'fuse' 'boost' 'libstdc++5' 'libwnck' 'compiz-core++' 'libwnck')
14 makedepends=('intltool' 'git' 'cmake' 'autoconf')
15 options=(!libtool !emptydirs)
16 source=(decorupdate.patch)
17 md5sums=(4fd8e8ef832f289f9289091eec4daaeb)
18 _gitroot="git://anongit.compiz.org/fusion/decorators/emerald"
21 # This is a developement version
22 # Note: Add auto-update to emerald-theme-manager
25 # trick re-determining the build revision and, or entertain the hidden
26 # makepkg option --forcever, huh
27 if [ -z "${FORCE_VER}" ]; then
28 msg "Determining latest build revision..."
29 FORCE_VER=$(date +%Y%m%d)
35 msg "Connecting to GIT server...."
37 if [ -d ${_gitname} ] ; then
42 git clone ${_gitroot} ${_gitname}
44 git checkout -b compiz++ origin/compiz++
46 msg "Patching Emerald..."
47 patch -Np 3 -i ../decorupdate.patch
49 msg "GIT checkout done or server timeout"
50 msg "Starting make..."
51 cd "${srcdir}/${_gitname}"
52 env PKG_CONFIG_PATH=${_iprefix}/lib/pkgconfig:$PKG_CONFIG_PATH \
53 ./autogen.sh --prefix=${_iprefix} || return 1
58 cd "${srcdir}/${_gitname}"
59 make DESTDIR=${pkgdir} install || return 1
60 msg "Making /usr/bin symlinks..."
61 mkdir -p $pkgdir/usr/bin
62 mkdir -p $pkgdir/usr/share/{applications,pixmaps}
63 ln -s "${_iprefix}/bin/emerald" "$pkgdir/usr/bin/emerald-git"
64 ln -s "${_iprefix}/bin/emerald-theme-manager" "$pkgdir/usr/bin/emerald-theme-manager-git"
65 msg "Moving *.desktop for emerald theme manager in the right place"
66 sed -i "s|Exec=emerald-theme-manager|Exec=emerald-theme-manager-git|;s|Icon=/usr/share/pixmaps/emerald-theme-manager-icon.png|Icon=${_iprefix}/emerald-theme-manager-icon.png|" ${pkgdir}/${_iprefix}/share/applications/emerald-theme-manager.desktop
67 mv ${pkgdir}/${_iprefix}/share/applications/emerald-theme-manager.desktop ${pkgdir}/usr/share/applications/emerald-theme-manager-git.desktop