summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryochananmarqos2019-10-08 11:24:52 -0600
committeryochananmarqos2019-10-08 11:24:52 -0600
commitc5252344edfcd9321ec8e0f066d5a6aee4619837 (patch)
treecbf3e5763b7d8eefc43db38b9e971fba58769c27
parent6f5ab631c30a32c65c0d640c073c38ebd882d685 (diff)
downloadaur-c5252344edfcd9321ec8e0f066d5a6aee4619837.tar.gz
use new setup.py
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD20
-rw-r--r--guiscrcpy.desktop2
-rw-r--r--guiscrcpy.sh2
4 files changed, 16 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8087f0cad69..be51c67e0b1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = guiscrcpy-git
pkgdesc = A full fledged GUI integration for the most award winning open-source Android screen mirroring system -- scrcpy
- pkgver = 1.11.r19.d112ac4
+ pkgver = nightly.r5.b48a7e7
pkgrel = 1
+ epoch = 1
url = https://srevinsaju.github.io/guiscrcpy
arch = i686
arch = x86_64
license = GPL3
makedepends = git
+ makedepends = python-setuptools
depends = scrcpy
depends = python-pyqt5
depends = python-psutil
@@ -17,10 +19,8 @@ pkgbase = guiscrcpy-git
conflicts = guiscrcpy
source = git+https://github.com/srevinsaju/guiscrcpy.git
source = guiscrcpy.desktop
- source = guiscrcpy.sh
sha256sums = SKIP
- sha256sums = b9f2925be19119950b8fa5099ff81c7368e51f1973d6f2528abe702087e6e5e0
- sha256sums = 21a9e0f6a38db03cbe84d6498519bd79d66796f47cd6a738133f38a45ea4bb42
+ sha256sums = a97ede5e1f363df0b3960c7cfbfdff69e8c2b2c39ef0abc522d5ff5ecb04061b
pkgname = guiscrcpy-git
diff --git a/PKGBUILD b/PKGBUILD
index 6cda5cb6840..a103f58aa65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,36 @@
# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
pkgname=guiscrcpy-git
-pkgver=1.11.r19.d112ac4
+pkgver=nightly.r5.b48a7e7
pkgrel=1
+epoch=1
pkgdesc="A full fledged GUI integration for the most award winning open-source Android screen mirroring system -- scrcpy"
arch=('i686' 'x86_64')
url="https://srevinsaju.github.io/guiscrcpy"
license=('GPL3')
depends=('scrcpy' 'python-pyqt5' 'python-psutil' 'python-qdarkstyle')
-makedepends=('git')
+makedepends=('git' 'python-setuptools')
optdepends=('python-pystray: for developers'
'usbaudio: AOA audio, deprecated since Android 8.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/srevinsaju/guiscrcpy.git'
- "${pkgname%-git}.desktop"
- "${pkgname%-git}.sh")
+ "${pkgname%-git}.desktop")
sha256sums=('SKIP'
- 'b9f2925be19119950b8fa5099ff81c7368e51f1973d6f2528abe702087e6e5e0'
- '21a9e0f6a38db03cbe84d6498519bd79d66796f47cd6a738133f38a45ea4bb42')
+ 'a97ede5e1f363df0b3960c7cfbfdff69e8c2b2c39ef0abc522d5ff5ecb04061b')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ python setup.py build
+}
+
package() {
cd "$srcdir/${pkgname%-git}"
- install -d "$pkgdir/opt/${pkgname%-git}"
- cp -r "${pkgname%-git}/"* "$pkgdir/opt/${pkgname%-git}/"
- install -Dm755 "$srcdir/${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 "$srcdir/${pkgname%-git}.desktop" "$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
install -Dm644 "installers/linux/icons/${pkgname%-git}_logo.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
}
diff --git a/guiscrcpy.desktop b/guiscrcpy.desktop
index 89cb5575a40..8b08dabb3c1 100644
--- a/guiscrcpy.desktop
+++ b/guiscrcpy.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=guiscrcpy
Comment=Your PC is your Android Device
-Exec=python /opt/guiscrcpy/__main__.py
+Exec=guiscrcpy
Terminal=false
Icon=guiscrcpy
Type=Application
diff --git a/guiscrcpy.sh b/guiscrcpy.sh
deleted file mode 100644
index 0aee4e60441..00000000000
--- a/guiscrcpy.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-python /opt/guiscrcpy/__main__.py