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:
parent
a97e532b93
commit
7dcf8a8bde
9 changed files with 22 additions and 71 deletions
11
Makefile
11
Makefile
|
@ -5,7 +5,6 @@ VERSION ?= 0.2.4
|
||||||
DOCKER_NAME=kbumsik/virtscreen
|
DOCKER_NAME=kbumsik/virtscreen
|
||||||
DOCKER_RUN=docker run --interactive --tty -v $(shell pwd):/app $(DOCKER_NAME)
|
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_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:
|
.ONESHELL:
|
||||||
|
|
||||||
|
@ -43,14 +42,14 @@ appimage-clean:
|
||||||
.PHONY: deb-contents deb-clean
|
.PHONY: deb-contents deb-clean
|
||||||
|
|
||||||
package/debian/%.deb:
|
package/debian/%.deb:
|
||||||
$(DOCKER_RUN_DEB) /app/debmake.sh virtualenv
|
$(DOCKER_RUN) package/debian/debmake.sh
|
||||||
$(DOCKER_RUN_DEB) /app/copy_debian.sh virtualenv
|
$(DOCKER_RUN) package/debian/copy_debian.sh
|
||||||
$(DOCKER_RUN_DEB) /app/debuild.sh virtualenv
|
$(DOCKER_RUN) package/debian/debuild.sh
|
||||||
$(DOCKER_RUN_DEB) chown -R $(shell id -u):$(shell id -u) /app/build
|
$(DOCKER_RUN) chown -R $(shell id -u):$(shell id -u) package/debian/build
|
||||||
cp package/debian/build/virtscreen*.deb package/debian
|
cp package/debian/build/virtscreen*.deb package/debian
|
||||||
|
|
||||||
deb-contents:
|
deb-contents:
|
||||||
$(DOCKER_RUN_DEB) /app/contents.sh
|
$(DOCKER_RUN) dpkg -c package/debian/*.deb
|
||||||
|
|
||||||
deb-clean:
|
deb-clean:
|
||||||
rm -rf package/debian/build package/debian/*.deb
|
rm -rf package/debian/build package/debian/*.deb
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
source _common.sh
|
|
||||||
|
|
||||||
cd build
|
|
||||||
dpkg -c virtscreen_$PKGVER-1_all.deb
|
|
|
@ -2,15 +2,15 @@ Source: virtscreen
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Bumsik Kim <k.bumsik@gmail.com>
|
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
|
Standards-Version: 3.9.8
|
||||||
Homepage: https://github.com/kbumsik/VirtScreen
|
Homepage: https://github.com/kbumsik/VirtScreen
|
||||||
X-Python3-Version: >= 3.6
|
X-Python3-Version: >= 3.5
|
||||||
|
|
||||||
Package: virtscreen
|
Package: virtscreen
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Multi-Arch: foreign
|
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
|
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
|
VirtScreen is an easy-to-use Linux GUI app that creates a virtual
|
||||||
secondary screen and shares it through VNC.
|
secondary screen and shares it through VNC.
|
||||||
|
|
|
@ -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.
|
|
|
@ -1,11 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
source $DIR/_common.sh
|
source $DIR/_common.sh
|
||||||
|
|
||||||
if [ $1 = "virtualenv" ]; then
|
cp -f $DIR/control $DIR/build/virtscreen-$PKGVER/debian/
|
||||||
cp -f $DIR/control.virtualenv $DIR/build/virtscreen-$PKGVER/debian/control
|
cp -f $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/
|
||||||
cp -f $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/
|
|
||||||
else
|
|
||||||
cp -f $DIR/{control,rules,README.Debian} $DIR/build/virtscreen-$PKGVER/debian
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
source $DIR/_common.sh
|
||||||
|
|
||||||
source _common.sh
|
mkdir -p package/debian/build
|
||||||
|
cd package/debian/build
|
||||||
mkdir build
|
# Download, rename, and copy files
|
||||||
cd build
|
|
||||||
# Download
|
|
||||||
wget -q https://github.com/kbumsik/VirtScreen/archive/$PKGVER.tar.gz
|
wget -q https://github.com/kbumsik/VirtScreen/archive/$PKGVER.tar.gz
|
||||||
tar -xzmf $PKGVER.tar.gz
|
tar -xzmf $PKGVER.tar.gz
|
||||||
# rename packages
|
|
||||||
mv VirtScreen-$PKGVER virtscreen-$PKGVER
|
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 -f ../../Makefile Makefile
|
||||||
cp -f ../../Makefile.virtualenv Makefile
|
# call debmake
|
||||||
debmake -b':sh'
|
debmake -b':sh'
|
||||||
else
|
|
||||||
debmake -b':py3'
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
source $DIR/_common.sh
|
||||||
|
|
||||||
source _common.sh
|
cd package/debian/build
|
||||||
|
|
||||||
cd build
|
|
||||||
cd virtscreen-$PKGVER
|
cd virtscreen-$PKGVER
|
||||||
if [ $1 = "virtualenv" ]; then
|
dpkg-buildpackage -b
|
||||||
dpkg-buildpackage -b
|
|
||||||
else
|
|
||||||
debuild
|
|
||||||
fi
|
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue