mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Merge 6b293bd366
into 9637d62816
This commit is contained in:
commit
cbb6b72989
5 changed files with 35 additions and 52 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
# See https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project
|
||||
# for python packaging reference.
|
||||
VERSION ?= 0.3.1
|
||||
VERSION ?= 0.3.2
|
||||
|
||||
DOCKER_NAME=kbumsik/virtscreen
|
||||
DOCKER_RUN=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
|
||||
|
|
|
@ -1,41 +1,25 @@
|
|||
# Maintainer: Bumsik Kim <k.bumsik@gmail.com>
|
||||
_pkgname_camelcase=VirtScreen
|
||||
pkgname=virtscreen
|
||||
pkgver=0.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="Make your iPad/tablet/computer as a secondary monitor on Linux"
|
||||
arch=("i686" "x86_64")
|
||||
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')
|
||||
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
|
||||
# Contributor: Bumsik Kim <k.bumsik@gmail.com>
|
||||
|
||||
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
|
||||
pkgname=virtscreen
|
||||
pkgver=0.3.2
|
||||
pkgrel=0
|
||||
pkgdesc="Make your iPad/tablet/computer as a secondary monitor on Linux"
|
||||
arch=('any')
|
||||
url="https://github.com/dderjoel/VirtScreen"
|
||||
license=('GPL3')
|
||||
depends=('xorg-xrandr' 'x11vnc' 'python-pyqt5' 'qt5-quickcontrols2' 'python-qasync' 'python-netifaces')
|
||||
makedepends=('python-setuptools')
|
||||
optdepends=('arandr: for display settings option')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
|
||||
sha256sums=('fdf4192829a1b2c2554e2f33b1c12756d34b691aad280bee207db3c9cd62f11d')
|
||||
|
||||
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"
|
||||
cd "VirtScreen-$pkgver"
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
PKGVER=0.3.1
|
||||
PKGVER=0.3.2
|
||||
# Required for debmake
|
||||
DEBEMAIL="k.bumsik@gmail.com"
|
||||
DEBFULLNAME="Bumsik Kim"
|
||||
export PKGVER DEBEMAIL DEBFULLNAME
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
ROOT=$SCRIPT_DIR/../..
|
||||
|
||||
# Generate necessary files for package building (generated by debmake)
|
||||
|
|
5
setup.py
5
setup.py
|
@ -40,7 +40,7 @@ setup(
|
|||
# For a discussion on single-sourcing the version across setup.py and the
|
||||
# project code, see
|
||||
# https://packaging.python.org/en/latest/single_source_version.html
|
||||
version='0.3.1', # Required
|
||||
version='0.3.2', # Required
|
||||
|
||||
# This is a one-line description or tagline of what your project does. This
|
||||
# corresponds to the "Summary" metadata field:
|
||||
|
@ -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=['qasync>=0.23.0',
|
||||
'netifaces>=0.10.6'], # Optional
|
||||
|
||||
# List additional groups of dependencies here (e.g. development
|
||||
|
|
|
@ -22,7 +22,7 @@ from PyQt5.QtWidgets import QApplication
|
|||
from PyQt5.QtQml import qmlRegisterType, QQmlApplicationEngine
|
||||
from PyQt5.QtGui import QIcon
|
||||
from PyQt5.QtCore import Qt, QUrl
|
||||
from quamash import QEventLoop
|
||||
from qasync import QEventLoop
|
||||
|
||||
from .display import DisplayProperty
|
||||
from .xrandr import XRandR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue