blob: 0e3a5216d1cf72f10e47460abc825c7997663b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
# Contributor: Chris Fordham <chris [at] fordham-nagy [dot] id [dot] au>
# Package Source: https://github.com/flaccid/archlinux-packages/blob/master/python-bcdoc/PKGBUILD
set -u
_pyver="python"
_pybase='bcdoc'
pkgname="${_pyver}-${_pybase}"
pkgver='0.16.0'
pkgrel='1'
pkgdesc='Tools to help document botocore-based projects.'
arch=('any')
url="https://github.com/boto/${_pybase}"
license=('Apache') # Apache License 2.0
makedepends=("${_pyver}" "${_pyver}-distribute") # same as python-setuptools
_srcdir="${_pybase}-${pkgver}"
_verwatch=("${url}/releases" "${url#*github.com}/archive/\(.*\)\.tar\.gz" 'l')
source=("${_pybase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
md5sums=('dd0fbea0cf0c1285a952588c068a5c4b')
sha256sums=('40f1ed169704c5f4c50b14d06c210c8d55ac68a12d55fc0ee296d520bf321aaf')
build() {
set -u
cd "${_srcdir}"
${_pyver} setup.py build
set +u
}
check() {
set -u
cd "${_srcdir}"
# If pip is installed, some package tests download missing packages. We can't allow that.
#${_pyver} setup.py test --verbose
set +u
}
package() {
set -u
depends=("${_pyver}") # "${_pydepends[@]}")
cd "${_srcdir}"
${_pyver} setup.py install --root="${pkgdir}" --optimize=1
#install -Dpm644 'LICENSE' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
set +u
}
set +u
# vim:set ts=2 sw=2 et:
|