summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b94fc029a64ac0b83f7d6686c36391e0ddb7637 (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
# Maintainer: Michael Riegert <michael at eowyn net>

pkgname=python-pycdlib-git
_name=pycdlib
pkgver=1.10.0.42.g2d41d2d
pkgrel=2
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 setup.py build
}

package() {
    cd "$_name"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}