summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1306f019ad16ef2b31cce5c461a73b646be3c173 (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
# Maintainer: haxibami <contact at haxibami dot net>

pkgname=python-la_panic
_pkgname="${pkgname#python-}"
pkgver=0.5.0
pkgrel=2
pkgdesc='A tool for working with iPhone crash reports'
arch=('any')
url='https://gitlab.com/yanivhasbanidev/la_panic'
license=('GPL-3.0-or-later')
depends=('python' 'python-click' 'python-coloredlogs' 'python-cached-property')
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest')
source=("${pkgname}-${pkgver}::git+${url}.git#tag=${pkgver}")
sha256sums=('745798422e4541171cd20220d2afbd5443408a2f9699003fec717f1157c3cd21')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python -m pytest
}

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