blob: dec9d58dd0838994f6c3df4725481cb022ddcbf1 (
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
|
# Maintainer: ebiadsu <ebiadsu@posteo.de>
pkgname=python-ovh
pkgver=1.0.0
pkgrel=1
pkgdesc="lightweight wrapper around OVH's APIs"
arch=("x86_64")
url="https://api.ovh.com"
license=('custom')
depends=("python")
makedepends=("python-setuptools" "python-sphinx")
source=("https://github.com/ovh/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('f7125d659acb5bf4b5bdfb9cef5c5951e9290ff3aadd6397ef0330f5c7831490')
build() {
cd $srcdir/$pkgname-$pkgver
python setup.py build
# build man pages
cd docs
make man
}
package() {
cd $srcdir/$pkgname-$pkgver
python setup.py install --root=$pkgdir --skip-build
# copy man pages into place
install -d $pkgdir/usr/share/man/man1
install -Dm644 docs/_build/man/python-ovh.1 $pkgdir/usr/share/man/man1/python-ovh.1
# install license file
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# install doc files
install -d "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 CHANGELOG.md "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG"
install -Dm644 CONTRIBUTING.rst "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.rst"
install -Dm644 MANIFEST.in "${pkgdir}/usr/share/doc/${pkgname}/MANIFEST.in"
install -Dm644 MIGRATION.rst "${pkgdir}/usr/share/doc/${pkgname}/MIGRATION.rst"
install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
}
|