updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gnome-shell-extension-zodiac-icon-manager-git / PKGBUILD
blobbed8988c420a0ae7f7d270d591ca48eea22313e1
1 #Contributor: Miguel Aguilar <zodiac_es@yahoo.es>
3 pkgname=gnome-shell-extension-zodiac-icon-manager-git
4 pkgver=20110710
5 pkgrel=2
6 arch=(any)
8 depends=(gnome-shell-extensions-zodiac-common-git)
9 groups=('shell-extensions-zodiac-git')
10 url="http://github.com/zodiac66/shell-extensions-zodiac"
11 license=(GPL2)
13 makedepends=('intltool' 'gnome-doc-utils' 'git' 'gnome-common')
15 _gitroot="git://github.com/zodiac66/shell-extensions-zodiac"
16 _gitname="shell-extensions-zodiac"
18 install=shell-extensions-zodiac-git.install
19 options=(!libtool !emptydirs)
21 #PKGBUILD specific functions
23 _enabled_extensions="icon-manager"
25 build() {
27     cd ${srcdir}/
29     msg "Connecting to the GIT server..."
30     if [[ -d ${srcdir}/${_gitname} ]] ; then
31         cd ${_gitname}
32         git pull origin
33         msg "The local files are updated..."
34     else
35         git clone ${_gitroot} ${_gitname}
36     fi
38     msg "GIT checkout done."
40     msg2 "Starting make for: ${pkgname}"
42     if [[ -d ${srcdir}/${_gitname}-build ]]; then
43        msg "Cleaning the previous build directory..."
44        rm -rf ${srcdir}/${_gitname}-build
45     fi
47     git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
49     cd ${srcdir}/${_gitname}-build
51     msg "Starting configure..."
52     ./autogen.sh --prefix=/usr --disable-schemas-compile --enable-extensions="${_enabled_extensions}"
53     make
56 package () {
57   pkgdesc="Add/remove icons from top bar panel by simple editing dconf settings"
59   cd "${srcdir}/${_gitname}-build/extensions/icon-manager"
60   make DESTDIR="$pkgdir" install