summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e51c6bcb0ecec04308e487de2da25221ff6fa8b6 (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
# Maintainer: Anty0 <anty150 at gmail dot com>


# Helper variables for updaurpkg (https://aur.archlinux.org/packages/updaurpkg-git)
_upstreamver='0.5.10'
_upstreamver_regex='^[0-9]+\.[0-9]+\.[0-9]+$'
_source_type='pypi-releases'
_repo='dave-howard/vsdx'
_pypi_package='vsdx'

pkgname='python-vsdx'
_pkgname="${_pypi_package}"
pkgver="${_upstreamver}"
pkgrel=1
pkgdesc="A python library for processing Visio .vsdx files"
url="https://github.com/${_repo}"
depends=('python' 'python-sphinx' 'python-sphinx_rtd_theme' 'python-jinja')
makedepends=('cython' 'python-setuptools')
license=('BSD-3-Clause')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package}/${_pypi_package}-${pkgver}.tar.gz")
sha256sums=('f36a8adb8fca98bb98dc5d4aaa3d038a5ad60ab7bd6e184ab580cfb9c8902dfa')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}/"
    python setup.py build_ext --inplace
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}/"
    python setup.py install --root="${pkgdir}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}