blob: 21dfee0a9a5dbc261c0d9245102819038320c176 (
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
51
52
|
# Maintainer: AmberArch <amber@mail.cyborgtrees.com>
pkgname=show-git
_pkgname=Show
pkgver=r89.2be9440
pkgrel=1
arch=(any)
pkgdesc="Realtime GLSL shader wallpapers"
url="https://github.com/danielfvm/Show"
license=("GPL")
# Show needs xrandr to build, but I don't know if its required for wayland systems.
depends=(python-xcffib python-cairocffi python-opengl python-screeninfo python-mouse python-scipy python-glfw glfw python-pillow)
optdepends=("glfw-wayland: wayland support"
"glfw-x11: x11 support"
)
makedepends=(git python-build python-installer python-wheel python-setuptools)
source=('git+https://github.com/danielfvm/Show.git')
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
#prepare() {
# cd "$srcdir/$_pkgname"
# git apply "$srcdir/show.patch"
#}
build() {
cd "$srcdir/$_pkgname"
python -m build --wheel --no-isolation
}
package() {
mkdir -p "$pkgdir/usr/share/show"
cd "$srcdir/$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
cp example/* LICENSE README.md "$pkgdir/usr/share/show"
#installs directly to site-packages instead of making a subdirectory
cd "$pkgdir/usr/lib/python3.10/site-packages"
mkdir Show
mv ./*.py Show/
mv __pycache__ Show/
chmod +x Show/show.py
#executable
mkdir -p "$pkgdir/usr/bin"
ln -s "/usr/lib/python3.10/site-packages/Show/show.py" "$pkgdir/usr/bin/show"
}
|