blob: 372dd2d54603a8da800e56245dddd88b0eb52783 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=guiscrcpy-git
pkgver=3.5.r11.g89d8b66
pkgrel=1
pkgdesc="Open Source GUI based Android Screen Mirroring System"
arch=('any')
url="https://guiscrcpy.github.io"
license=('GPL3')
depends=('scrcpy' 'python-fonttools' 'python-gitpython' 'python-pyqt5'
'python-psutil' 'python-pynput' 'python-setuptools')
makedepends=('git' 'python-setuptools')
optdepends=('python-pystray: for Notification Auditor'
'usbaudio: AOA audio, deprecated since Android 8.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/srevinsaju/guiscrcpy.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i 's/PyQt5==5.14.1/PyQt5/g' setup.py
}
build() {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 "appimage/${pkgname%-git}.desktop" -t \
"$pkgdir/usr/share/applications"
install -Dm644 "appimage/${pkgname%-git}.png" -t \
"$pkgdir/usr/share/pixmaps"
}
|