updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / clustershell / PKGBUILD
blobc284b9536eca064c2e0fc184a68e057aaa02a740
1 # Maintainer: Aurelien Cedeyn <aurelien.cedeyn@gmail.com>
2 pkgbase="clustershell"
3 pkgname="clustershell"
4 true && pkgname=(clustershell vim-clustershell)
5 pkgver=1.5.1
6 pkgrel=1
7 pkgdesc="Python framework for efficient cluster administration"
8 arch=(any)
9 url="http://clustershell.sourceforge.net"
10 license=('custom:CeCILL')
11 depends=('python2')
12 makedepends=('python2' 'setuptools')
13 source=(http://sourceforge.net/projects/clustershell/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz/download)
14 md5sums=('027506d825ecc4b361f49d0742e63332')
15 changelog=clustershell.changelog
17 build() {
18         echo "Directory: ${srcdir}/${pkgname}-${pkgver}"
19         cd ${srcdir}/${pkgname}-${pkgver}
20         python2 setup.py build
22 package_clustershell(){
23         optdepends=('openssh: Secure SHell client to connect to distant machines')
24         cd ${srcdir}/${pkgname}-${pkgver}
25         python2 setup.py install -O1 --skip-build --root="${pkgdir}"
26         # config files
27         install -d ${pkgdir}/etc/clustershell
28         install -p -m 0644 conf/*.conf ${pkgdir}/etc/clustershell/
30         # man pages
31         install -d ${pkgdir}/usr/share/man/{man1,man5}
32         install -p -m 0644 doc/man/man1/clubak.1 ${pkgdir}/usr/share/man/man1/
33         install -p -m 0644 doc/man/man1/clush.1 ${pkgdir}/usr/share/man/man1/
34         install -p -m 0644 doc/man/man1/nodeset.1 ${pkgdir}/usr/share/man/man1/
35         install -p -m 0644 doc/man/man5/clush.conf.5 ${pkgdir}/usr/share/man/man5/
36         install -p -m 0644 doc/man/man5/groups.conf.5 ${pkgdir}/usr/share/man/man5/
37         install -D -m644 Licence_CeCILL-C_V1-en.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
40 package_vim-clustershell(){
41         depends=(vim)
42         local vimdatadir=/usr/share/vim/vimfiles
43         cd ${srcdir}/${pkgname}-${pkgver}
44         # vim addons
45         install -d ${pkgdir}/$vimdatadir/{ftdetect,syntax}
46         install -p -m 0644 doc/extras/vim/ftdetect/clustershell.vim ${pkgdir}/${vimdatadir}/ftdetect/
47         install -p -m 0644 doc/extras/vim/syntax/clushconf.vim ${pkgdir}/${vimdatadir}/syntax/
48         install -p -m 0644 doc/extras/vim/syntax/groupsconf.vim ${pkgdir}/${vimdatadir}/syntax/