diff options
author | Carlos Aznarán Laos | 2023-02-20 18:39:21 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2023-02-20 18:39:21 -0500 |
commit | 78ac56413b684885ec6637b6271b282d0d4c8b68 (patch) | |
tree | 525f83ce8eca8f16511382ea442a654a8ad73ea2 /PKGBUILD | |
download | aur-78ac56413b684885ec6637b6271b282d0d4c8b68.tar.gz |
Bump version to 0.1.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4878c5b032eb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +_base=tcx2gpx +pkgname=python-${_base} +pkgdesc="Converts the Garmin tcx GPS file format to the more commonly used gpx file format" +pkgver=0.1.4 +pkgrel=1 +arch=(any) +url="https://gitlab.com/nshephard/${_base}" +license=(GPL3) +depends=(python-gpxpy python-tcxparser python-tqdm) +makedepends=(python-build python-installer python-setuptools python-wheel) +checkdepends=(python-pytest-cov) +source=(${url}/-/archive/0.1.4/${_base}-${pkgver}.tar.gz) +sha512sums=('3a3b57b3de998e05bd23a383d19a3ef1a4ed3fd9959cde44a5d97b6fab9058426d326502bc4ed0e14fdce74d61b3e5ea01acf2eb57b02a1d58dbad55f3b0cff6') + +build() { + cd ${_base}-${pkgver} + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd ${_base}-${pkgver} + python -m pytest +} + +package() { + cd ${_base}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |