summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9574b721a64362de1792b55fd9e5be1c9cb08e71 (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
# Maintainer: gilbus <aur (AT) tinkershell dot eu>
pkgname=python-xdg-base-dirs
_name=xdg_base_dirs
pkgver=6.0.1
pkgrel=1
pkgdesc="An implementation of the XDG Base Directory Specification in Python"
arch=('any')
url="https://github.com/srstevenson/xdg-base-dirs"
license=('ISC')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'python-poetry-core')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('b4c8f4ba72d1286018b25eea374ec6fbf4fddda3d4137edf50de95de53e195a6')

prepare() {
  cd "$_name-$pkgver"
}

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

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