summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fc1a6aa8f65261b30e55e86e181dca1720c0c96 (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
# Maintainer: Martin Diehl <aur@martin-diehl.net>

pkgver=0.3
pkgrel=2
pkgname=python-yaml2rst
_name=${pkgname#python-}
pkgdesc='A Simple Tool and Python-Module for Documenting YAML Files'
arch=('any')
url='https://github.com/debops/yaml2rst'
license=('GPL3')
makdepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('a2886ff5cafc4996b5faf94907e88d6882f7a220d60cb8a766ca9af13012adb043b101b43b9e9303cb269e73d957b8e6f05bff5c6e16df270571373a2c4d0298')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}