
Untitled
By: a guest on
Oct 1st, 2011 | syntax:
Bash | size: 1.09 KB | hits: 159 | expires: Never
# PKGBUILD
pkgname=gnome-pie-git
pkgver=20111001
pkgrel=1
pkgdesc="A visual application launcher for gnome."
arch=('i686' 'x86_64')
url="https://github.com/Simmesimme/Gnome-Pie"
license=('GPL')
depends=('gtk2' 'gnome-menus' 'cairo' 'libgee' 'libxml2' 'libxtst' 'libunique' 'gdk-pixbuf2' 'hicolor-icon-theme')
makedepends=('gcc' 'vala' 'cmake')
install=(gnome-pie.install)
_gitroot="git://github.com/Simmesimme/Gnome-Pie.git"
_gitname="Gnome-Pie"
build() {
cd $startdir/src
msg "Connecting to GIT server...."
if [ -d $startdir/src/$_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
cd $srcdir/${_gitname}
msg "Building gnome-pie"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd $srcdir/${_gitname}/build
make DESTDIR=${pkgdir} install
}
# gnome-pie.install
post_install() {
gtk-update-icon-cache
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}