summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73433e7321828371df54c9b33fb028adcb9d405d (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 : Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=python-pyparsedvd-git
pkgver=0.0.3.0.ge2021f5
pkgrel=1
pkgdesc="Parse and extract binary data from dvd files. (GIT version)"
url="https://github.com/Ichunjo/pyparsedvd"
arch=('any')
license=('MIT')
depends=('python')
makedepends=(
  'git'
  'python-build'
  'python-wheel'
  'python-installer'
  'python-setuptools'
)
source=('git+https://github.com/Ichunjo/pyparsedvd.git')
sha256sums=('SKIP')

pkgver() {
  cd pyparsedvd
  echo "$(git describe --long --tags | tr - . | tr -d r)"
}

build() {
  cd pyparsedvd
  python -m build --wheel --no-isolation
}

package() {
  cd pyparsedvd
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}