updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / catwm-git / PKGBUILD
blob2425618a9ac45f9ede080300d36f93fc186f436c
1 pkgname=catwm-git
2 pkgver=20100701
3 pkgrel=1
4 pkgdesc="Cute And Tiny Window Manager"
5 url="http://github.com/pyknite/catwm"
6 license=('GPL')
7 depends=('libx11')
8 makedepends=('gcc' 'make' 'git')
9 arch=(i686 x86_64)
10 source=()
11 md5sums=()
12 options=(!libtool)
14 _gitroot="git://github.com/pyknite/catwm.git"
15 _gitname="catwm"
17 build() {
18     msg "Connecting to GIT server...."
20     # if local repo already exist
21     if [[ -d $startdir/src/$_gitname ]] ; then
22         cd $_gitname
23         git pull origin || return 1
24         msg "The local files are updated."
25         # else clone
26     else
27         git clone $_gitroot || return 1
28     fi
30     msg "GIT checkout done"
31     msg "Starting make..."
33     # build directory
34     cd $srcdir/$_gitname
36     # edit config.h
37     $EDITOR config.h
39     make DESTDIR=${pkgdir} install || return 1