blob: e311bbb0b060cf4dfa360234ac256bb1e0cd8a26 (
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
42
43
44
45
46
47
48
49
50
|
# Maintainer: Arvid Norlander <VorpalBlade@users.noreply.github.com>
pkgname=aurutilsutils-git
pkgver=r23.96dae82
pkgrel=3
pkgdesc="Utilities extending aurutils"
arch=("any")
url="https://github.com/VorpalBlade/aurutilsutils"
license=('ISC')
depends=(
'aurutils'
'python-appdirs'
'python-more-itertools'
'python-networkx'
'python-prompt_toolkit'
'python-yaml'
'python-regex'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-wheel'
'python-setuptools-scm'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('aurutilsutils::git+https://github.com/VorpalBlade/aurutilsutils.git')
md5sums=('SKIP')
# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.
pkgver() {
cd "$srcdir/${pkgname%-git}"
#printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -d "$pkgdir/usr/share/zsh/site-functions/"
install -Dm 644 -t "$pkgdir/usr/share/zsh/site-functions/" completion/zsh/_*
}
|