1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-02-12 11:21:53 +00:00

Debian: cleanup build system

This commit is contained in:
Bumsik Kim 2018-06-26 05:02:30 -04:00
parent a97e532b93
commit 7dcf8a8bde
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
9 changed files with 22 additions and 71 deletions

View file

@ -5,7 +5,6 @@ VERSION ?= 0.2.4
DOCKER_NAME=kbumsik/virtscreen
DOCKER_RUN=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
DOCKER_RUN_TTY=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
DOCKER_RUN_DEB=docker run -v $(shell pwd)/package/debian:/app $(DOCKER_NAME)
.ONESHELL:
@ -43,14 +42,14 @@ appimage-clean:
.PHONY: deb-contents deb-clean
package/debian/%.deb:
$(DOCKER_RUN_DEB) /app/debmake.sh virtualenv
$(DOCKER_RUN_DEB) /app/copy_debian.sh virtualenv
$(DOCKER_RUN_DEB) /app/debuild.sh virtualenv
$(DOCKER_RUN_DEB) chown -R $(shell id -u):$(shell id -u) /app/build
$(DOCKER_RUN) package/debian/debmake.sh
$(DOCKER_RUN) package/debian/copy_debian.sh
$(DOCKER_RUN) package/debian/debuild.sh
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) package/debian/build
cp package/debian/build/virtscreen*.deb package/debian
deb-contents:
$(DOCKER_RUN_DEB) /app/contents.sh
$(DOCKER_RUN) dpkg -c package/debian/*.deb
deb-clean:
rm -rf package/debian/build package/debian/*.deb

View file

@ -1,6 +0,0 @@
#!/bin/bash
source _common.sh
cd build
dpkg -c virtscreen_$PKGVER-1_all.deb

View file

@ -2,15 +2,15 @@ Source: virtscreen
Section: utils
Priority: optional
Maintainer: Bumsik Kim <k.bumsik@gmail.com>
Build-Depends: debhelper (>=9), dh-python, python3-all
Build-Depends: debhelper (>=9), python3-all
Standards-Version: 3.9.8
Homepage: https://github.com/kbumsik/VirtScreen
X-Python3-Version: >= 3.6
X-Python3-Version: >= 3.5
Package: virtscreen
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}, x11vnc, python3-pyqt5, python3-twisted, python3-netifaces
Depends: ${misc:Depends}, x11vnc
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

@ -1,16 +0,0 @@
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
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

@ -1,11 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/_common.sh
if [ $1 = "virtualenv" ]; then
cp -f $DIR/control.virtualenv $DIR/build/virtscreen-$PKGVER/debian/control
cp -f $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/
else
cp -f $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian
fi
cp -f $DIR/control $DIR/build/virtscreen-$PKGVER/debian/
cp -f $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/

View file

@ -1,20 +1,15 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/_common.sh
source _common.sh
mkdir build
cd build
# Download
mkdir -p package/debian/build
cd package/debian/build
# Download, rename, and copy files
wget -q https://github.com/kbumsik/VirtScreen/archive/$PKGVER.tar.gz
tar -xzmf $PKGVER.tar.gz
# rename packages
mv VirtScreen-$PKGVER virtscreen-$PKGVER
mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz
cd virtscreen-$PKGVER
if [ $1 = "virtualenv" ]; then
cp -f ../../Makefile.virtualenv Makefile
debmake -b':sh'
else
debmake -b':py3'
fi
cp -f ../../Makefile Makefile
# call debmake
debmake -b':sh'

View file

@ -1,11 +1,7 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/_common.sh
source _common.sh
cd build
cd package/debian/build
cd virtscreen-$PKGVER
if [ $1 = "virtualenv" ]; then
dpkg-buildpackage -b
else
debuild
fi
dpkg-buildpackage -b

View file

@ -1,12 +0,0 @@
#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
export DH_VERBOSE = 1
%:
dh $@ --with python3 --buildsystem=pybuild
#override_dh_auto_install:
# dh_auto_install -- prefix=/usr
#override_dh_install:
# dh_install --list-missing -X.pyc -X.pyo