diff options
Diffstat (limited to 'url/PKGBUILD')
-rw-r--r-- | url/PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/url/PKGBUILD b/url/PKGBUILD new file mode 100644 index 0000000..019167d --- /dev/null +++ b/url/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Aki <please@ignore.pl> +pkgname=url +pkgver=1.0.0 +pkgrel=2 +pkgdesc='Utility for easy URL rewriting from CLI' +license=(None) +arch=(any) +makedepends=(python-setuptools python-setuptools-scm python-build python-installer) +depends=(python) +source=("https://git.ignore.pl/${pkgname}/snapshot/${pkgname}-${pkgver}.tar.gz") +sha256sums=('899c037c84e352cbbabfce9a7f559e85e146455dc47bf4adeae983f45dfdf393') + + +build() { + export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" + python3 -m build --wheel --no-isolation +} + + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + python3 -m installer --destdir="${pkgdir}" dist/*.whl +} |