summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 475ed65bace6feb8a732893ad29574968afbfb2b (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
# Maintainer: Robin Broda <coderobe at archlinux dot org>

pkgname=python-xtarfile
pkgver=0.2.1
pkgrel=3
pkgdesc='Wrapper around tarfile to add support for more compression formats'
arch=('any')
url=https://github.com/ascoderu/xtarfile
license=('Apache-2.0')
depends=('python-zstandard' 'python-lz4')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ascoderu/xtarfile/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('a01270336caaae2c91b4e73d6bdaae2b40dcbd3308d917baa6e8fa8dbcc7a99a')

prepare() {
  cd xtarfile-$pkgver
  echo $pkgver > version.txt
}

build() {
  cd xtarfile-$pkgver
  python -m build --wheel --no-isolation
}

check() {
  cd xtarfile-$pkgver
  python -m unittest discover -vs .
}

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