blob: 74646a422bd71e356845b20ef69bb5040173dfd2 (
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
34
35
36
37
38
39
40
41
|
# Maintainer: Egor Vorontsov <sdoregor@sdore.me>
_pkgbase=python-sutils
_gitname=utils
pkgname=${_pkgbase}-git
pkgver=r91.7f2eaa7
pkgrel=1
pkgdesc="Sdore's Utils lib"
arch=('any')
url="https://apps.sdore.me/${_gitname}"
license=('LGPL3')
depends=('python-regex' 'python-pygments' 'python-typing_inspect')
makedepends=('python-build' 'python-installer')
provides=("${_pkgbase}")
conflicts=("${_pkgbase}")
source=("git+${url}.git"
'pyproject.toml')
sha256sums=('SKIP'
'a55dd9d9b45773520c17d02f305babeff8a54c17bfe01e3b02d17f7dbe5a13dc')
pkgver() {
cd "${srcdir}/${_gitname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}"
python -m installer --destdir="${pkgdir}" "dist/${_gitname}-"*.whl
cd "${_gitname}"
install -Dm755 'utils' -t "${pkgdir}/usr/bin/"
}
|