updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / echinus-git / PKGBUILD
blob74339712d2f4e05ea0967bd3c6f5b8913e7414fc
1 # Maintainer:  TDY <tdy@gmx.com>
3 pkgname=echinus-git
4 pkgver=20110416
5 pkgrel=1
6 pkgdesc="A window manager for X in the spirit of dwm"
7 arch=('i686' 'x86_64')
8 url="http://plhk.ru/echinus"
9 license=('MIT')
10 depends=('libxft')
11 makedepends=('git' 'pkgconfig')
12 optdepends=('ourico: complementary taskbar for echinus')
13 provides=('echinus')
14 conflicts=('echinus' 'echinus-hg')
15 install=echinus.install
16 source=(echinus.desktop)
17 md5sums=('3dbc8f89200dcb8b3e44144602172c49')
19 _gitroot=git://github.com/polachok/echinus.git
20 _gitname=echinus
22 build() {
23   cd "$srcdir"
25   if [[ -d $_gitname ]]; then
26     cd $_gitname && git pull origin && cd ..
27   else
28     git clone $_gitroot
29   fi
31   rm -rf $_gitname-build
32   git clone $_gitname $_gitname-build
33   cd $_gitname-build
35   make PREFIX=/usr X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
36   make PREFIX=/usr DESTDIR="$pkgdir" CONF=/share/$_gitname/examples install
37   install -Dm644 ../$_gitname.desktop \
38     "$pkgdir/usr/share/xsessions/$_gitname.desktop"
39   install -Dm644 $_gitname.1 "$pkgdir/usr/share/man/man1/$_gitname.1"
40   install -Dm644 README "$pkgdir/usr/share/doc/$_gitname/README"
41   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"