2012-10-26 15:53:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
version=$(git describe)
|
|
|
|
outfile=${0%.in}
|
|
|
|
|
|
|
|
cat << eof > "${outfile}"
|
|
|
|
pkgname=cdist
|
|
|
|
pkgver=$version
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='A Usable Configuration Management System"'
|
|
|
|
arch=('any')
|
|
|
|
url='http://www.nico.schottelius.org/software/cdist/'
|
|
|
|
license=('GPL3')
|
2012-10-26 16:13:17 +00:00
|
|
|
depends=('python>=3.2.0')
|
2012-10-26 15:53:35 +00:00
|
|
|
source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz")
|
|
|
|
|
|
|
|
package() {
|
2012-10-26 16:13:17 +00:00
|
|
|
cd cdist-\${pkgver}
|
|
|
|
python3 setup.py build install --root="\${pkgdir}"
|
|
|
|
mv "\${pkgdir}"/usr/bin/cdist.py "\${pkgdir}"/usr/bin/cdist
|
2012-10-26 15:53:35 +00:00
|
|
|
|
2012-10-26 16:13:17 +00:00
|
|
|
#install -Dm644 offlineimap.1 "\${pkgdir}"/usr/share/man/man1/offlineimap.1
|
2012-10-26 15:53:35 +00:00
|
|
|
}
|
|
|
|
eof
|
2012-10-26 16:13:17 +00:00
|
|
|
|
|
|
|
makepkg -g >> "${outfile}"
|