Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ansible 2.9.7 #1945

Merged
merged 8 commits into from
Jun 23, 2020
42 changes: 42 additions & 0 deletions ansible/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >

pkgname=ansible
pkgver=2.9.7
pkgrel=1
pkgdesc='Radically simple IT automation platform'
arch=('i686' 'x86_64')
url='https://www.ansible.com'
license=('GPL3')
depends=('python' 'python-yaml' 'python-jinja')
provides=('python-ansible')
optdepends=('sshpass: for ssh connections with password')
makedepends=('tar' 'python-setuptools')
backup=('etc/ansible/ansible.cfg')
source=("https://releases.ansible.com/ansible/ansible-${pkgver}.tar.gz")
sha512sums=('ce029441bcafdc5b44c9fda69f183d4defea84ead5628164caf87306cb97efec68c11b2cce728e90f28290640c320549486a6b4e823710f638d1d2e7c35675a4')
noextract=("${pkgname}-${pkgver}.tar.gz")

prepare() {
[[ -d ${pkgname}-${pkgver} ]] && rm -rf ${pkgname}-${pkgver}
# Workaround an issue with symbolic links in the tarball.
tar zxf "${srcdir}/${pkgname}-${pkgver}.tar.gz" || true
MSYS=winsymlinks:lnk tar zxf "${srcdir}/${pkgname}-${pkgver}.tar.gz"
}

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
/usr/bin/python setup.py build
}

package() {
cd ${pkgname}-${pkgver}
/usr/bin/python setup.py install -O1 --root="${pkgdir}"
install -Dm644 COPYING "${pkgdir}"/usr/share/doc/ansible/COPYING

install -d "${pkgdir}"/usr/share/ansible/doc
cp -dpr --no-preserve=ownership ./examples "${pkgdir}"/usr/share/ansible/doc/
install -Dm644 examples/ansible.cfg "${pkgdir}"/etc/ansible/ansible.cfg

install -d "${pkgdir}"/usr/share/man/man1
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "${pkgdir}"/usr/share/man/man1
}
31 changes: 31 additions & 0 deletions cython/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >

_realname=cython
pkgbase=${_realname}
pkgname=('cython')
pkgver=0.29.17
pkgrel=1
pkgdesc='C-Extensions for Python'
arch=('i686' 'x86_64')
url='https://cython.org/'
license=('APACHE')
depends=('python-setuptools')
makedepends=('gcc' 'libcrypt-devel')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cython/cython/archive/${pkgver}.tar.gz")
sha256sums=('5ab5c1e92fe334bcd3cde3b0c34dd96d1b007d64e7fa9fdbf53bb368c5d27e22')

prepare() {
cd "${srcdir}"
rm -rf python-build-${CARCH}| true
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
}

build() {
cd "${srcdir}/python-build-${CARCH}"
DISTUTILS_DEBUG=1 /usr/bin/python setup.py build
}

package() {
cd "${srcdir}/python-build-${CARCH}"
DISTUTILS_DEBUG=1 /usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
32 changes: 32 additions & 0 deletions python-jinja/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >

_realname=jinja
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=2.11.2
pkgrel=1
pkgdesc='A simple pythonic template language written in Python'
arch=('i686' 'x86_64')
license=('BSD')
url='http://jinja.pocoo.org/'
depends=('python-setuptools' 'python-markupsafe')
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/pallets/jinja/archive/${pkgver}.tar.gz")
sha256sums=('c5720a681bf1c5b11e184af32e6a8ce28670911787702b20cd0367e3877bbcae')

prepare() {
cd "${srcdir}"
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
}

build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py build
}

package() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py install --root="${pkgdir}" -O1
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE.rst"
}
37 changes: 37 additions & 0 deletions python-wcwidth/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >

_realname=wcwidth
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=0.1.9
pkgrel=1
pkgdesc='Measures number of Terminal column cells of wide-character codes'
url='https://github.com/jquast/wcwidth'
arch=('i686' 'x86_64')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
#checkdepends=("python-tox")
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/jquast/${_realname}/archive/${pkgver}.tar.gz")
sha256sums=('e97f34ae353abada7ebc2d11e4bb3c53e38411dd53df2ec467c997d352d2e137')

prepare() {
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
}

build() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py build
}

#check() {
# cd ${srcdir}/python-build-${CARCH}
# tox
#}

package() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
}
44 changes: 44 additions & 0 deletions python-yaml/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >

_pyname=PyYAML
_realname=yaml
pkgbase=python-${_realname}
pkgname=("python-${_realname}")
pkgver=5.3.1
pkgrel=1
pkgdesc='Python bindings for YAML, using fast libYAML library'
arch=('i686' 'x86_64')
url='https://pyyaml.org/'
license=('MIT')
depends=('python' 'libyaml')
makedepends=('cython' 'python-setuptools' 'libyaml-devel' 'libcrypt-devel')
options=('staticlibs' 'strip' '!debug')
source=("https://pyyaml.org/download/pyyaml/${_pyname}-${pkgver}.tar.gz")
install=python-yaml.install
sha512sums=('87372877d396bd06cdb6b9052ef8822ef0589a211659bf27d7a1c4deca8429cb39e120a23e5d590d7adc0f8059ce1c8af42409bebd7c6d504d49dc8504d5683a')

prepare() {
# Force cython rebuild
rm ${_pyname}-${pkgver}/ext/_yaml.c
rm -rf python-build-${CARCH} | true
cp -r "${_pyname}-${pkgver}" "python-build-${CARCH}"
}

build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py --with-libyaml build
}

check() {
msg "Python test for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py test
}

package() {
cd "${srcdir}/python-build-${CARCH}"
/usr/bin/python setup.py --with-libyaml install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/python-${_realname}/COPYING"
install -Dm644 CHANGES README -t "${pkgdir}/usr/share/doc/python-${_realname}"
}
7 changes: 7 additions & 0 deletions python-yaml/python-yaml.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
post_install() {
cat << EOT
==> Note that even though this package uses libyaml library,
==> slower pure python implementation is used by default.
==> See https://pyyaml.org/wiki/PyYAMLDocumentation
EOT
}