1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Deb for Ubuntu 16.04 is successful

This commit is contained in:
Bumsik Kim 2018-06-03 11:55:15 -04:00
parent 710864a44d
commit 920fd56ea8
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
7 changed files with 86 additions and 4 deletions

View file

@ -40,6 +40,13 @@ deb-build: deb-clean deb-make
deb-contents: deb-contents:
docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/contents.sh docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/contents.sh
deb-env-make:
docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/debmake.sh virtualenv
deb-env-build: deb-clean deb-env-make
package/debian/copy_debian.sh virtualenv
docker run --privileged --interactive --tty --rm -v $(shell pwd)/package/debian:/app debmake /app/debuild.sh virtualenv
deb-clean: deb-clean:
rm -rf package/debian/build rm -rf package/debian/build

View file

@ -11,7 +11,13 @@ RUN apt-get update && \
ln /usr/bin/python3 /usr/bin/python && \ ln /usr/bin/python3 /usr/bin/python && \
ln /usr/bin/pip3 /usr/bin/pip && \ ln /usr/bin/pip3 /usr/bin/pip && \
rm -rf /var/cache/apt/archives/*.deb && \ rm -rf /var/cache/apt/archives/*.deb && \
pip install virtualenv && \
pip install --upgrade pip setuptools && \ pip install --upgrade pip setuptools && \
useradd -c Builder -m -U builder useradd -c Builder -m -U builder
USER builder USER builder
# Get Miniconda and make it the main Python interpreter
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
bash ~/miniconda.sh -b -p ~/miniconda && \
rm ~/miniconda.sh

View file

@ -0,0 +1,40 @@
prefix = /usr
all:
: # do nothing
SHELL = /bin/bash
install:
# Create virtualenv
install -d $(DESTDIR)$(prefix)/share/virtscreen
virtualenv $(DESTDIR)$(prefix)/share/virtscreen/env --always-copy
source $(HOME)/miniconda/bin/activate && \
conda create -y --copy --prefix $(DESTDIR)$(prefix)/share/virtscreen/env python=3.6
source $(HOME)/miniconda/bin/activate && \
source activate $(DESTDIR)$(prefix)/share/virtscreen/env && \
pip install .
# Fix hashbang and move executable
sed -i "1s:.*:#!$(prefix)/share/virtscreen/env/bin/python3:" \
$(DESTDIR)$(prefix)/share/virtscreen/env/bin/virtscreen
install -D $(DESTDIR)$(prefix)/share/virtscreen/env/bin/virtscreen \
$(DESTDIR)$(prefix)/bin/virtscreen
# Delete unnecessary installed files done by setup.py
rm -rf $(DESTDIR)$(prefix)/share/virtscreen/env/lib/python3.6/site-packages/usr
# Copy desktop entry and icon
install -m 644 -D data/virtscreen.desktop \
$(DESTDIR)$(prefix)/share/applications/virtscreen.desktop
install -m 644 -D data/virtscreen.png \
$(DESTDIR)$(prefix)/share/pixmaps/virtscreen.png
clean:
: # do nothing
distclean: clean
uninstall:
: # do nothing
# override_dh_usrlocal:
# : # do nothing
.PHONY: all install clean distclean uninstall

View file

@ -0,0 +1,16 @@
Source: virtscreen
Section: utils
Priority: optional
Maintainer: Bumsik Kim <k.bumsik@gmail.com>
Build-Depends: debhelper (>=9), python3-all
Standards-Version: 3.9.8
Homepage: https://github.com/kbumsik/VirtScreen
X-Python3-Version: >= 3.5
Package: virtscreen
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, x11vnc, qtbase5-dev
Description: Make your iPad/tablet/computer as a secondary monitor on Linux
VirtScreen is an easy-to-use Linux GUI app that creates a virtual
secondary screen and shares it through VNC.

View file

@ -3,5 +3,9 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/_common.sh source $DIR/_common.sh
echo $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian if [ $1 = "virtualenv" ]; then
cp $DIR/control.virtualenv $DIR/build/virtscreen-$PKGVER/debian/control
cp $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/
else
cp $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian cp $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian
fi

View file

@ -12,4 +12,9 @@ mv VirtScreen-$PKGVER virtscreen-$PKGVER
mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz
cd virtscreen-$PKGVER cd virtscreen-$PKGVER
if [ $1 = "virtualenv" ]; then
cp ../../Makefile.virtualenv Makefile
debmake -b':sh'
else
debmake -b':py3' debmake -b':py3'
fi

View file

@ -4,4 +4,8 @@ source _common.sh
cd build cd build
cd virtscreen-$PKGVER cd virtscreen-$PKGVER
if [ $1 = "virtualenv" ]; then
dpkg-buildpackage -b
else
debuild debuild
fi