diff options
author | Amber | 2022-07-23 17:55:36 -0500 |
---|---|---|
committer | Amber | 2022-07-23 17:55:36 -0500 |
commit | 069485499b20a8e02d6152ace3308a41619ef4f7 (patch) | |
tree | deb9f6d62fb2ae69ed273390686f818c725ef311 | |
parent | 1e21e9e9e58b2423ccbf6d75695bb6819a2d3056 (diff) | |
download | aur-069485499b20a8e02d6152ace3308a41619ef4f7.tar.gz |
package updated to python
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 38 insertions, 20 deletions
@@ -1,16 +1,23 @@ pkgbase = show-git pkgdesc = Realtime GLSL shader wallpapers - pkgver = r59.9657faf - pkgrel = 3 + pkgver = r86.f966da3 + pkgrel = 1 url = https://github.com/danielfvm/Show arch = any license = GPL - makedepends = meson makedepends = git - makedepends = cmake - depends = imlib2 - depends = glew - depends = xorg-xrandr + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + depends = python-xcffib + depends = python-cairocffi + depends = python-opengl + depends = python-screeninfo + depends = python-mouse + depends = python-opencv + depends = python-scipy + depends = python-glfw source = git+https://github.com/danielfvm/Show.git sha256sums = SKIP @@ -1,17 +1,17 @@ -# Maintainer: AmberArch <sawanon@protonmail.com> +# Maintainer: AmberArch <amber@mail.cyborgtrees.com> pkgname=show-git _pkgname=Show -pkgver=r59.9657faf -pkgrel=3 +pkgver=r86.f966da3 +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=(imlib2 glew xorg-xrandr) -makedepends=(meson git cmake) -source=('git+https://github.com/danielfvm/Show.git') +depends=(python-xcffib python-cairocffi python-opengl python-screeninfo python-mouse python-opencv python-scipy python-glfw) +makedepends=(git python-build python-installer python-wheel python-setuptools) +source=('git+https://github.com/danielfvm/Show.git') sha256sums=('SKIP') pkgver() { @@ -22,17 +22,28 @@ pkgver() { ) } +#prepare() { +# cd "$srcdir/$_pkgname" +# git apply "$srcdir/show.patch" +#} + build() { -cd "$_pkgname" - mkdir build - meson "$_pkgname/build" --prefix="$pkgdir/usr" + cd "$srcdir/$_pkgname" + python -m build --wheel --no-isolation } package() { -mkdir -p "$pkgdir/usr" mkdir -p "$pkgdir/usr/share/show" -cd "$_pkgname" - ninja -C "$_pkgname/build" install +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" } |