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:
		
							parent
							
								
									710864a44d
								
							
						
					
					
						commit
						920fd56ea8
					
				
					 7 changed files with 86 additions and 4 deletions
				
			
		
							
								
								
									
										7
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -40,6 +40,13 @@ deb-build: deb-clean deb-make
 | 
			
		|||
deb-contents:
 | 
			
		||||
	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:
 | 
			
		||||
	rm -rf package/debian/build
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,13 @@ RUN apt-get update && \
 | 
			
		|||
    ln /usr/bin/python3 /usr/bin/python && \
 | 
			
		||||
    ln /usr/bin/pip3 /usr/bin/pip && \
 | 
			
		||||
    rm -rf /var/cache/apt/archives/*.deb && \
 | 
			
		||||
    pip install virtualenv && \
 | 
			
		||||
    pip install --upgrade pip setuptools && \
 | 
			
		||||
    useradd -c Builder -m -U 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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										40
									
								
								package/debian/Makefile.virtualenv
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								package/debian/Makefile.virtualenv
									
										
									
									
									
										Normal 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
 | 
			
		||||
							
								
								
									
										16
									
								
								package/debian/control.virtualenv
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								package/debian/control.virtualenv
									
										
									
									
									
										Normal 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.
 | 
			
		||||
| 
						 | 
				
			
			@ -3,5 +3,9 @@
 | 
			
		|||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 | 
			
		||||
source $DIR/_common.sh
 | 
			
		||||
 | 
			
		||||
echo $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian
 | 
			
		||||
cp $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
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,4 +12,9 @@ mv VirtScreen-$PKGVER virtscreen-$PKGVER
 | 
			
		|||
mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz
 | 
			
		||||
 | 
			
		||||
cd virtscreen-$PKGVER
 | 
			
		||||
debmake -b':py3'
 | 
			
		||||
if [ $1 = "virtualenv" ]; then
 | 
			
		||||
    cp ../../Makefile.virtualenv Makefile
 | 
			
		||||
    debmake -b':sh'
 | 
			
		||||
else
 | 
			
		||||
    debmake -b':py3'
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,4 +4,8 @@ source _common.sh
 | 
			
		|||
 | 
			
		||||
cd build
 | 
			
		||||
cd virtscreen-$PKGVER
 | 
			
		||||
debuild
 | 
			
		||||
if [ $1 = "virtualenv" ]; then
 | 
			
		||||
    dpkg-buildpackage -b
 | 
			
		||||
else
 | 
			
		||||
    debuild
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue