blob: 48e4608bbe5536a12e14cb2aa4def0cf1aa03b22 (
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
|
# Maintainer: ebiadsu <ebiadsu@posteo.de>
pkgname=python-ovh
pkgver=0.5.0
pkgrel=1
pkgdesc="Official OVH.com API wrapper"
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=('fe62e7a75d563d9e8e784a8b648bc3fc0ea33bd6b31fddf16687daa277b8dc1391504e3fa7c1a35026a23c3243654e18579269c3904ccb360f56a1921585fc1b')
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"
}
|