summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88d6176bc31e59d6333fc2573e20f322d2e899db (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
# Maintainer: Matheus Afonso Martins Moreira <aur@matheusmoreira.com>
# Previous maintainers:
# 	Michael Riegert <michael at eowyn net>

pkgname=python-pycdlib-git
_name=pycdlib
pkgver=1.15.0.0.g67fe5ea
pkgrel=1
pkgdesc='Python library to read and write ISOs'
arch=('any')
url=https://github.com/clalancette/pycdlib
license=('LGPL2.1')
depends=('python')
makedepends=('python-setuptools' 'git')
source=("$_name::git+${url}.git")
sha512sums=('SKIP')
provides=('python-pycdlib')
conflicts=('python-pycdlib')

pkgver() {
    cd "$_name"
    git describe --long --tags | sed 's/v//g;s/-/./g'
}

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

package() {
    cd "$_name"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
    install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}