Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quamash -> qasync #111

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
54 changes: 19 additions & 35 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,41 +1,25 @@
# Maintainer: Bumsik Kim <[email protected]>
_pkgname_camelcase=VirtScreen
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
# Contributor: Bumsik Kim <[email protected]>

pkgname=virtscreen
pkgver=0.3.1
pkgrel=1
pkgver=0.3.2
pkgrel=0
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')
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')

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
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
}
20 changes: 10 additions & 10 deletions package/debian/build.sh
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
#!/bin/bash

PKGVER=0.3.1
PKGVER=0.3.2
# Required for debmake
DEBEMAIL="[email protected]"
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)
cd $ROOT/package/debian
cp $ROOT/virtscreen-$PKGVER.tar.gz .
tar -xzmf virtscreen-$PKGVER.tar.gz
cp $ROOT/package/debian/Makefile \
$ROOT/package/debian/virtscreen-$PKGVER/Makefile
$ROOT/package/debian/virtscreen-$PKGVER/Makefile
cd $ROOT/package/debian/virtscreen-$PKGVER
debmake --yes -b':sh'

# copy files to build
# debmake files
mkdir -p $ROOT/package/debian/build
cp -R $ROOT/package/debian/virtscreen-$PKGVER/debian \
$ROOT/package/debian/build/debian
$ROOT/package/debian/build/debian
cp $ROOT/package/debian/Makefile \
$ROOT/package/debian/build/
$ROOT/package/debian/build/
cp $ROOT/package/debian/{control,README.Debian} \
$ROOT/package/debian/build/debian/
$ROOT/package/debian/build/debian/
# binary and data files
cp $ROOT/package/appimage/VirtScreen.AppImage \
$ROOT/package/debian/build/
$ROOT/package/debian/build/
cp $ROOT/virtscreen.desktop \
$ROOT/package/debian/build/
$ROOT/package/debian/build/
cp -R $ROOT/data \
$ROOT/package/debian/build/
$ROOT/package/debian/build/

# Build .deb package
cd $ROOT/package/debian/build
dpkg-buildpackage -b

# cleanup
rm -rf $ROOT/package/debian/virtscreen-$PKGVER \
$ROOT/package/debian/*.tar.gz
$ROOT/package/debian/*.tar.gz
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# 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:
Expand Down Expand Up @@ -143,8 +143,7 @@
#
# 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
Expand Down
2 changes: 1 addition & 1 deletion virtscreen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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
Expand Down