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

Experimental Debian building system

This commit is contained in:
Bumsik Kim 2018-05-22 21:26:17 -04:00
parent 11cc7add7b
commit b8c2ff27c4
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
4 changed files with 66 additions and 2 deletions

16
package/debian/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
# Or bionic
FROM ubuntu:latest
LABEL author="Bumsik Kim <k.bumsik@gmail.com>"
WORKDIR /app
CMD ["/bin/bash"]
RUN apt-get update && \
apt-get install -y python3-all python3-pip fakeroot debmake debhelper fakeroot wget tar && \
apt-get autoremove -y && \
ln /usr/bin/python3 /usr/bin/python && \
ln /usr/bin/pip3 /usr/bin/pip && \
rm -rf /var/cache/apt/archives/*.deb && \
useradd -c Builder -m -U builder
USER builder

19
package/debian/debmake.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
PKGVER=0.1.2
# Required for debmake
DEBEMAIL="k.bumsik@gmail.com"
DEBFULLNAME="Bumsik Kim"
export DEBEMAIL DEBFULLNAME
mkdir build
cd build
# Download
wget 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
debmake -b':py3'

11
package/debian/debuild.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
PKGVER=0.1.2
# Required for debmake
DEBEMAIL="k.bumsik@gmail.com"
DEBFULLNAME="Bumsik Kim"
export DEBEMAIL DEBFULLNAME
cd build
cd virtscreen-$PKGVER
debuild