summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMark Wagie2021-09-19 19:50:43 -0600
committerMark Wagie2021-09-19 19:50:43 -0600
commit8ebb0acf4c908be815be7f3bbfac5d1e8768a40f (patch)
tree73026127d9b773e8e945a068e03f213000e121b0 /PKGBUILD
parentf2f858d329bf49d9004922009bb1caf8405d3d13 (diff)
downloadaur-8ebb0acf4c908be815be7f3bbfac5d1e8768a40f.tar.gz
adopt to poetry
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 13 insertions, 13 deletions
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"
}