summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-06-27 02:47:50 -0500
committerLuis Martinez2021-06-27 02:47:50 -0500
commit2255fafddf62547bb2072f6dee9a9b2e19d10e17 (patch)
treebd63a32f172df9bc3728ed5ec617004e3735e9d4
parent861902a69a99d6f970b0654a885b8cb33e0e3aa8 (diff)
downloadaur-2255fafddf62547bb2072f6dee9a9b2e19d10e17.tar.gz
cleanup
-rw-r--r--.SRCINFO20
-rw-r--r--001-remove-pyqt5.patch14
-rw-r--r--PKGBUILD55
3 files changed, 46 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e44afb75816..ce8752a3919 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,21 @@
pkgbase = virtscreen
pkgdesc = Make your iPad/tablet/computer as a secondary monitor on Linux
pkgver = 0.3.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/kbumsik/VirtScreen
- arch = i686
- arch = x86_64
- license = GPL
- makedepends = python-pip
- makedepends = perl
+ arch = any
+ license = GPL3
+ makedepends = python-setuptools
depends = xorg-xrandr
depends = x11vnc
depends = python-pyqt5
depends = qt5-quickcontrols2
- depends = python-quamash-git
+ depends = python-quamash
depends = python-netifaces
optdepends = arandr: for display settings option
- provides = virtscreen
- source = src::git+https://github.com/kbumsik/VirtScreen.git#tag=0.3.1
- md5sums = SKIP
+ source = virtscreen-0.3.1.tar.gz::https://github.com/kbumsik/VirtScreen/archive/refs/tags/0.3.1.tar.gz
+ source = 001-remove-pyqt5.patch
+ sha256sums = 345c9333a0129db660d07687fbfa479fd69bf9fe387510b987207463c7a55257
+ sha256sums = 95772f671ff329e3e7ef791999dc9f131647bc0f92c3a23e43813399659c62c9
pkgname = virtscreen
-
diff --git a/001-remove-pyqt5.patch b/001-remove-pyqt5.patch
new file mode 100644
index 00000000000..08679cfba14
--- /dev/null
+++ b/001-remove-pyqt5.patch
@@ -0,0 +1,14 @@
+diff --git a/setup.py b/setup.py
+index 36eeb37..27a12c1 100644
+--- a/setup.py
++++ b/setup.py
+@@ -143,8 +143,7 @@ setup(
+ #
+ # For an analysis of "install_requires" vs pip's requirements files see:
+ # https://packaging.python.org/en/latest/requirements.html
+- install_requires=['PyQt5>=5.10.1',
+- 'Quamash>=0.6.0',
++ install_requires=['Quamash>=0.6.0',
+ 'netifaces>=0.10.6'], # Optional
+
+ # List additional groups of dependencies here (e.g. development
diff --git a/PKGBUILD b/PKGBUILD
index b5ae7957589..2643fde1a05 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,32 @@
-# Maintainer: Bumsik Kim <k.bumsik@gmail.com>
-_pkgname_camelcase=VirtScreen
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+# Contributor: Bumsik Kim <k.bumsik@gmail.com>
+
pkgname=virtscreen
pkgver=0.3.1
-pkgrel=1
+pkgrel=2
pkgdesc="Make your iPad/tablet/computer as a secondary monitor on Linux"
-arch=("i686" "x86_64")
+arch=('any')
url="https://github.com/kbumsik/VirtScreen"
-license=('GPL')
-groups=()
-depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'qt5-quickcontrols2' 'python-quamash-git' 'python-netifaces')
-makedepends=('python-pip' 'perl')
-optdepends=(
- 'arandr: for display settings option'
-)
-provides=($pkgname)
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=(src::git+https://github.com/kbumsik/$_pkgname_camelcase.git#tag=$pkgver)
-noextract=()
-md5sums=('SKIP')
+license=('GPL3')
+depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'qt5-quickcontrols2' 'python-quamash' 'python-netifaces')
+makedepends=('python-setuptools')
+optdepends=('arandr: for display settings option')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
+ '001-remove-pyqt5.patch')
+sha256sums=('345c9333a0129db660d07687fbfa479fd69bf9fe387510b987207463c7a55257'
+ '95772f671ff329e3e7ef791999dc9f131647bc0f92c3a23e43813399659c62c9')
prepare() {
- cd $srcdir/src
- # Delete PyQt5 from install_requires because python-pyqt5 does not have PyPI metadata.
- # See https://bugs.archlinux.org/task/58887
- perl -pi -e "s/\'PyQt5>=\d+\.\d+\.\d+\',//" \
- setup.py
+ cd "VirtScreen-$pkgver"
+ patch -p1 < "$srcdir/001-remove-pyqt5.patch"
+}
+
+build() {
+ cd "VirtScreen-$pkgver"
+ python setup.py build
}
package() {
- cd $srcdir/src
- PIP_CONFIG_FILE=/dev/null /usr/bin/pip install --isolated --root="$pkgdir" --ignore-installed --ignore-requires-python --no-deps .
- # These are already installed by setup.py
- # install -Dm644 "data/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
- # install -Dm644 "data/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
-} \ No newline at end of file
+ cd "VirtScreen-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}