1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/packaging/arch/PKGBUILD
Bartłomiej Piotrowski 2b06de5664 Include all man pages in Arch Linux package.
While we're on it, change $pkgdesc to follow its counterpart from
official repositories. Additionally don't install RELEASES.txt and
CONTRIBUTING.md; there is little use for them from the user's perspective.
2014-02-09 13:53:40 +01:00

50 lines
1.5 KiB
Bash

# Maintainer: Michel Blanc <mblanc@erasme.org>
pkgname=ansible-git
pkgver=1.1.4095.g3f2f5fe
pkgrel=1
pkgdesc='Radically simple IT automation platform'
arch=('any')
url='http://www.ansible.com'
license=('GPL3')
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
makedepends=('git' 'asciidoc' 'fakeroot')
optdepends=('python2-pyzmq: needed for fireball mode'
'python2-pyasn1: needed for fireball mode'
'python2-crypto: needed for fireball mode'
'python2-keyczar: needed for fireball mode')
conflicts=('ansible')
provides=('ansible')
backup=('etc/ansible/ansible.cfg')
source=($pkgname::git://github.com/ansible/ansible.git)
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long | sed 's/^v//;s/-/./g'
}
build() {
cd $pkgname
make PYTHON=python2
}
package() {
cd $pkgname
mkdir -p "$pkgdir/usr/share/ansible"
cp -dpr --no-preserve=ownership ./library/* "$pkgdir/usr/share/ansible/"
cp -dpr --no-preserve=ownership ./examples "$pkgdir/usr/share/ansible"
python2 setup.py install -O1 --root="$pkgdir"
install -D examples/ansible.cfg "$pkgdir/etc/ansible/ansible.cfg"
install -D README.md "$pkgdir/usr/share/doc/ansible/README.md"
install -D COPYING "$pkgdir/usr/share/doc/ansible/COPYING"
install -D CHANGELOG.md "$pkgdir/usr/share/doc/ansible/CHANGELOG.md"
mkdir -p "$pkgdir/usr/share/man/man{1,3}"
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
cp -dpr --no-preserve=ownership docs/man/man3/*.3 "$pkgdir/usr/share/man/man3"
}