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:
parent
11cc7add7b
commit
b8c2ff27c4
4 changed files with 66 additions and 2 deletions
16
package/debian/Dockerfile
Normal file
16
package/debian/Dockerfile
Normal 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
19
package/debian/debmake.sh
Executable 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
11
package/debian/debuild.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue