blob: c0178a3f00c42845e4f0e77ed5fe1f100b858624 (
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
|
# Maintainer: John Bernard <loqusion@gmail.com>
_pkgname=hyprshade
pkgname=${_pkgname}-git
pkgver=r36.a128afb
pkgrel=1
pkgdesc="Quickly swap between screen shaders in Hyprland"
arch=('any')
url="https://github.com/loqusion/hyprshade"
license=('MIT')
_py_deps=(
more-itertools
typer
)
depends=(
hyprland
"${_py_deps[@]/#/python-}"
util-linux
)
makedepends=(git python-{build,installer})
provides=($_pkgname)
conflicts=($_pkgname)
source=(git+https://github.com/loqusion/${_pkgname}.git)
sha512sums=('SKIP')
prepare() {
git -C "${srcdir}/${_pkgname}" clean -dfx
}
pkgver() {
cd $_pkgname
{
set -o pipefail
git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
}
build() {
cd $_pkgname
python -m build -wn
}
package() {
cd $_pkgname
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer -d "$pkgdir" dist/*.whl
}
|