Skip to content

Commit

Permalink
Created AUR package and a desktop entry
Browse files Browse the repository at this point in the history
  • Loading branch information
kbumsik committed May 21, 2018
1 parent 99936f6 commit 570a582
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions package/archlinux/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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

38 changes: 38 additions & 0 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Maintainer: Bumsik Kim <[email protected]>
_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"
}
11 changes: 11 additions & 0 deletions virtscreen.desktop
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 570a582

Please sign in to comment.