summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD26
2 files changed, 16 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4b0a2b73fa8..eb94dd371db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = guiscrcpy-git
pkgdesc = Open Source GUI based Android Screen Mirroring System
- pkgver = 4.9.0.r1221.gd681dd3
+ pkgver = 4.11.0.r1265.gffc2243
pkgrel = 1
url = https://guiscrcpy.github.io
arch = any
license = GPL3
makedepends = git
- makedepends = python-setuptools
- makedepends = python-pyqt5
+ makedepends = python-pip
+ makedepends = python-poetry
depends = scrcpy
depends = python-pynput
depends = python-qtpy
@@ -16,8 +16,6 @@ pkgbase = guiscrcpy-git
depends = python-click
depends = python-colorama
depends = libxinerama
- optdepends = python-pyqt5: Qt5 Python bindings
- optdepends = pyside2: PySide Qt5 Python bindings
optdepends = usbaudio: audio mirroring for Android <8.0
optdepends = sndcpy: audio mirroring for Android >=10
provides = guiscrcpy
@@ -26,4 +24,3 @@ pkgbase = guiscrcpy-git
sha256sums = SKIP
pkgname = guiscrcpy-git
-
diff --git a/PKGBUILD b/PKGBUILD
index bd3abc22542..d9cf646597a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=guiscrcpy-git
-pkgver=4.9.0.r1221.gd681dd3
+pkgver=4.11.0.r1265.gffc2243
pkgrel=1
pkgdesc="Open Source GUI based Android Screen Mirroring System"
arch=('any')
@@ -8,10 +8,8 @@ url="https://guiscrcpy.github.io"
license=('GPL3')
depends=('scrcpy' 'python-pynput' 'python-qtpy' 'python-psutil'
'python-cairosvg' 'python-click' 'python-colorama' 'libxinerama')
-makedepends=('git' 'python-setuptools' 'python-pyqt5')
-optdepends=('python-pyqt5: Qt5 Python bindings'
- 'pyside2: PySide Qt5 Python bindings'
- 'usbaudio: audio mirroring for Android <8.0'
+makedepends=('git' 'python-pip' 'python-poetry')
+optdepends=('usbaudio: audio mirroring for Android <8.0'
'sndcpy: audio mirroring for Android >=10')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
@@ -19,18 +17,20 @@ source=('git+https://github.com/srevinsaju/guiscrcpy.git')
sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname%-git}"
- printf "%s.r%s.g%s" "$(python setup.py --version)" \
- "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s.r%s.g%s" "$(sed -n '/version/{s/.*"\([0-9\.]*\).*"/\1/p;q}' pyproject.toml)" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/${pkgname%-git}"
- python setup.py build
+ cd "$srcdir/${pkgname%-git}"
+ poetry build --format wheel
}
package() {
- cd "$srcdir/${pkgname%-git}"
- export PYTHONHASHSEED=0
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ cd "$srcdir/${pkgname%-git}"
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
+
+ install -Dm644 appimage/${pkgname%-git}.desktop -t "$pkgdir/usr/share/applications"
+ install -Dm644 appimage/${pkgname%-git}.png -t "$pkgdir/usr/share/pixmaps"
}