diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 101 |
1 files changed, 41 insertions, 60 deletions
@@ -1,65 +1,46 @@ -# Contributor: olddog <jeff@impcode.com> -# Contributer: kaptoxic -# Contributor: carloratm <carlo.ratm@gmail.com> +# Maintainer: Shalygin Konstantin <k0ste@k0ste.ru> +# Contributor: Shalygin Konstantin <k0ste@k0ste.ru> -pkgname=barman -_realname=barman -pkgver=3.6.0 -pkgrel=1 +pkgname='barman' +pkgver='3.6.0' +pkgrel='2' pkgdesc="Backup and recovery manager for PostgreSQL" -arch=('x86_64') -url="http://www.pgbarman.org" +arch=('x86_64' 'aarch64') +url="https://www.pg${pkgname}.org/" license=('GPL3') -depends=('rsync' 'python' 'python-argh' 'python-psycopg2' 'python-dateutil' 'python-argcomplete') -makedepends=('python-distribute' 'python-sphinx' 'python-mock' 'python-pytest' ) # 'python-sphinx-bootstrap-theme' is in the AUR +depends=('rsync' 'python' 'python-argh' 'python-psycopg2' + 'python-dateutil' 'python-argcomplete') +makedepends=('python-distribute' 'python-sphinx' 'python-mock' 'python-pytest') optdepends=('python-boto3' 'python-botocore') -provides=('barman') -options=(!emptydirs) - -source=( - "https://github.com/EnterpriseDB/barman/releases/download/release/${pkgver}/barman-${pkgver}.tar.gz" - barman.crond - barman.logrotate - passive-server.conf-template - ssh-server.conf-template - streaming-server.conf-template -) - -md5sums=('9bfd312f8675d679a1d09e79dd31b205' - '0e48345895f88b3939543c00928a199b' - '58c5b20b8e1272ab4ce46757f6613e0d' - 'b43254374978938f7d21035a3356b531' - 'a98247fde653192d5587fff0c2b7b5fe' - '6dda5a4abca99443e8956ffa719d0ce0') - -package() -{ - cd "${srcdir}/barman-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 || exit 1 - - # install LICENSE file - install -Dm 0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - - # install docs - install -Dm 0644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" - - # install the bash_completion - mkdir -p "${pkgdir}/usr/share/bash-completion/completions/" - install -m 0644 scripts/barman.bash_completion "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" - - # install example files - cd doc - install -Dm 0644 barman.conf -t "${pkgdir}/usr/share/doc/${pkgname}/etc/" - - cd "${srcdir}" - mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/etc/cron.d/" \ - "${pkgdir}/usr/share/doc/${pkgname}/etc/barman.d/" \ - "${pkgdir}/usr/share/doc/${pkgname}/etc/logrotate.d/" - install -m 0644 barman.crond "${pkgdir}/usr/share/doc/${pkgname}/etc/cron.d/barman" - install -m 0644 barman.logrotate "${pkgdir}/usr/share/doc/${pkgname}/etc/logrotate.d/barman" - install -Dm 0644 passive-server.conf-template -t "${pkgdir}/usr/share/doc/${pkgname}/etc/barman.d/" - install -Dm 0644 ssh-server.conf-template -t "${pkgdir}/usr/share/doc/${pkgname}/etc/barman.d/" - install -Dm 0644 streaming-server.conf-template -t "${pkgdir}/usr/share/doc/${pkgname}/etc/barman.d/" - +source=("https://github.com/EnterpriseDB/${pkgname}/releases/download/release/${pkgver}/${pkgname}-${pkgver}.tar.gz" + "${pkgname}.crond" + "${pkgname}.logrotate" + "passive-server.conf-template" + "ssh-server.conf-template" + "streaming-server.conf-template") +sha256sums=('e390e033dd18233f3351e272323efcdce940f267e381f63c32729f01fc5d5f8b' + '43e90f39b167b682aa98e753c1803cf6244ba6c1eeb5738270fcb47837c25147' + '723ba6c8ddce9284d48243787e6d24c40db98933f28bf6a79ce53a2c15bb261c' + '631afa66223a705db3c1d5a4749b8f60368f86b72a3c0fc7eef9ca48af312c50' + '0c014a7232f33444dde368da6b8a61e10d0f7c346a240ffdcbbf46ed77ac2366' + '28895cd3a857d98d14ac4b86fb1f968c49834fd22310c4de676fdda2ea75c855') + +package() { + pushd "${pkgname}-${pkgver}" + python setup.py install -O1 --root="${pkgdir}" + mkdir -p "${pkgdir}/usr/share/bash-completion/completions" + mkdir -p "${pkgdir}/usr/share/doc/${pkgname}/etc/"{cron.d,${pkgname}.d,logrotate.d} + + install -Dm0644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm0644 "README.rst" "${pkgdir}/usr/share/doc/${pkgname}/README.rst" + install -Dm0644 "scripts/${pkgname}.bash_completion" \ +"${pkgdir}/usr/share/bash-completion/completions/${pkgname}" + install -Dm0644 "doc/${pkgname}.conf" "${pkgdir}/usr/share/doc/${pkgname}/etc/${pkgname}.conf" + + popd + install -Dm0644 "${pkgname}.crond" "${pkgdir}/usr/share/doc/${pkgname}/etc/cron.d/${pkgname}" + install -Dm0644 "${pkgname}.logrotate" "${pkgdir}/usr/share/doc/${pkgname}/etc/logrotate.d/${pkgname}" + install -Dm0644 "passive-server.conf-template" "${pkgdir}/usr/share/doc/${pkgname}/etc/${pkgname}.d" + install -Dm0644 "ssh-server.conf-template" "${pkgdir}/usr/share/doc/${pkgname}/etc/${pkgname}.d" + install -Dm0644 "streaming-server.conf-template" "${pkgdir}/usr/share/doc/${pkgname}/etc/${pkgname}.d" } - |