blob: 019167d5dfcd4157b08ca4cc93b4955abb7c979c (
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
|
# 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
}
|