summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db6094128da908e30b6614f647dff8186aa0e836 (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
36
37
38
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=psvtools-git
pkgver=0.1.0.3.gde2e2a9
pkgrel=1
arch=('any')
pkgdesc="PSV file trimmer, restoration, and validation utility (Python). (GIT version)"
url='https://github.com/kageurufu/psvtools'
license=('MIT')
makedepends=(
  'git'
  'python-setuptools'
  'python-installer'
  'python-wheel'
  'python-build'
  'python-pytest-runner'
)
conflicts=('psvtools')
provides=('psvtools')
source=('git+https://github.com/kageurufu/psvtools.git')
sha256sums=('SKIP')

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

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

package() {
  cd psvtools
  python -m installer --destdir="${pkgdir}" dist/*.whl

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}