From 570a58243df40db0ba9ae379f078fd8a4757b059 Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Mon, 21 May 2018 04:12:30 -0400 Subject: [PATCH] Created AUR package and a desktop entry --- Makefile | 26 ++++++++++++++++++++------ package/archlinux/.SRCINFO | 22 ++++++++++++++++++++++ package/archlinux/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ virtscreen.desktop | 11 +++++++++++ 4 files changed, 91 insertions(+), 6 deletions(-) create mode 100644 package/archlinux/.SRCINFO create mode 100644 package/archlinux/PKGBUILD create mode 100755 virtscreen.desktop diff --git a/Makefile b/Makefile index b11ff84..ac8a759 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,33 @@ # See https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project # for python packaging reference. -.PHONY: wheel install clean +.PHONY: -wheel: +python-wheel: python setup.py bdist_wheel --universal -upload: +python-install: + python setup.py install --user + +pip-upload: twine upload dist/* -install: - python setup.py install --user +.ONESHELL: + +arch-update: + cd package/archlinux + makepkg --printsrcinfo > .SRCINFO + +arch-install: arch-update + cd package/archlinux + makepkg -si + +arch-clean: + cd package/archlinux + rm -rf pkg src *.tar* launch: ./launch.sh -clean: +clean: arch-clean rm -rf build dist virtscreen.egg-info diff --git a/package/archlinux/.SRCINFO b/package/archlinux/.SRCINFO new file mode 100644 index 0000000..d57ccfb --- /dev/null +++ b/package/archlinux/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = virtscreen + pkgdesc = Make your iPad/tablet/computer as a secondary monitor on Linux + pkgver = 0.1.1 + pkgrel = 1 + url = https://github.com/kbumsik/VirtScreen + arch = i686 + arch = x86_64 + license = GPL + makedepends = python-setuptools + depends = xorg-xrandr + depends = x11vnc + depends = python-pyqt5 + depends = python-twisted + depends = python-netifaces + depends = python-qt5reactor + optdepends = arandr: for display settings option + provides = virtscreen + source = https://github.com/kbumsik/VirtScreen/archive/0.1.1.tar.gz + sha256sums = c584fe68ef296bced2ef5f3d88ffe81de1039c3062531c34547eeabd8c2f186d + +pkgname = virtscreen + diff --git a/package/archlinux/PKGBUILD b/package/archlinux/PKGBUILD new file mode 100644 index 0000000..65654f3 --- /dev/null +++ b/package/archlinux/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Bumsik Kim +_pkgname_camelcase=VirtScreen +pkgname=virtscreen +pkgver=0.1.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' 'python-twisted' 'python-netifaces' 'python-qt5reactor') +makedepends=('python-setuptools') +optdepends=( + 'arandr: for display settings option' +) +provides=($pkgname) +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=(https://github.com/kbumsik/$_pkgname_camelcase/archive/$pkgver.tar.gz) +noextract=() +sha256sums=('c584fe68ef296bced2ef5f3d88ffe81de1039c3062531c34547eeabd8c2f186d') + +build() { + echo "$pkgdir" + cd $_pkgname_camelcase-$pkgver + python setup.py build +} + +package() { + cd $_pkgname_camelcase-$pkgver + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "$pkgname/icon/icon.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" +} \ No newline at end of file diff --git a/virtscreen.desktop b/virtscreen.desktop new file mode 100755 index 0000000..ac93627 --- /dev/null +++ b/virtscreen.desktop @@ -0,0 +1,11 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=VirtScreen +Comment=Make your iPad/tablet/computer as a secondary monitor on Linux +Exec=virtscreen +Icon=virtscreen +Terminal=false +StartupNotify=false +Categories=Application;