updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bmpanel-git / PKGBUILD
blobda7f90f2de0a5e61d7fc0da9e3c4f25f04593b49
1 # Contributor: CainĂ£ Costa <sryche@archlinux-br.org>
2 # Ex-contributor: Buharev Vasilij <buharev.v.p@gmail.com>
4 pkgname=bmpanel-git
5 pkgver=20090304
6 pkgrel=1
7 pkgdesc="BMPanel is a lightweight panel with taskbar, tray, desktop switcher and clock. It is themeable reincarnation of fspanel."
8 arch=('i686' 'x86_64')
9 url="http://nsf.110mb.com/bmpanel/"
10 license=('custom')
11 depends=('imlib2' 'fontconfig' 'libxrender' 'libxcomposite')
12 makedepends=('git' 'gcc' 'make')
13 source=("http://nsf.110mb.com/bmpanel/arch.tar.gz")
14 provides=('bmpanel')
15 conflicts=('bmpanel')
16 md5sums=('f30e56ac1a7cbcf34463d7e38118910b')
18 _gitroot="git://github.com/nsf/bmpanel.git"
19 _gitname="bmpanel"
21 build() {
22   cd $startdir/src
23   msg "Connecting to GIT server...."
25   if [ -d $startdir/src/$_gitname ] ; then
26     cd $_gitname && git-pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   cd ${startdir}/src
37   [ -d $_gitname-build ] && rm -rf $_gitname-build
38   cp -rf $_gitname $_gitname-build
39   cd $_gitname-build
41   ./configure --prefix=/usr --optimize --with-composite || return 1
42   make
43   make DESTDIR=${startdir}/pkg install || return 1
45   mv ../arch ${startdir}/pkg/usr/share/bmpanel/themes/
46   install -D -m644 COPYING ${startdir}/pkg/usr/share/licenses/$pkgname/COPYING
47