summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 23 insertions, 32 deletions
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
+}