This repository was archived by the owner on Mar 2, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ARG CACHEBUST=1
44RUN apt update -qq && apt upgrade -y -qq && \
55 apt autoremove --purge -y -qq && \
66 apt clean -y -qq && \
7- apt install -y -qq zip \
7+ apt install -y -qq zip git \
88 debhelper debmake fakeroot libncursesw5-dev \
99 autoconf make checkinstall \
1010 dh-autoreconf dh-make dh-strip-nondeterminism && \
Original file line number Diff line number Diff line change 11#! /bin/bash
2- cd ${HOME} /src
2+ cd ${HOME}
3+ git clone --depth 1 https://github.com/paaguti/mg3a src
4+ cd src
35fakeroot debian/rules clean binary
46mv ../mg3a* .deb ${HOME} /debs
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- cd $( dirname $0 )
3+ # cd $(dirname $0)
44
5+ # if [ -d src ]; then
6+ # cd src; git clean -dfx; git pull; cd ..
7+ # else
8+ # git clone --depth 1 https://github.com/paaguti/mg3a src
9+ # fi
510
6- if [ -d src ]; then
7- cd src; git clean -dfx; git pull; cd ..
8- else
9- git clone https://github.com/paaguti/mg3a src
10- fi
11+ # [ -d src ] || exit 1
1112
12- SEGPRG=$( printf " /^UPDATE=/s/UPDATE=./UPDATE=%s/g" $UPDATE )
13+ # SEGPRG=$(printf "/^UPDATE=/s/UPDATE=./UPDATE=%s/g" $UPDATE)
1314
1415IMAGE=jammy
1516PRG=/usr/local/bin/mkmg
@@ -26,17 +27,15 @@ echo "Compiling for ${IMAGE}..."
2627
2728docker -D run -it \
2829 --mount " type=bind,source=$( pwd) /bin,target=/usr/local/bin" \
29- --mount " type=bind,source=$( pwd) /src,target=/home/paag/src" \
3030 --mount " type=bind,source=$( pwd) /debs,target=/home/paag/debs" \
3131 --entrypoint=" " \
3232 --user=$UID :$GID \
3333 --workdir=/home/paag \
3434 --name mg3a-build debmaker:${IMAGE} ${PRG}
35+ # --mount "type=bind,source=$(pwd)/src,target=/home/paag/src" \
3536
3637EXITED=" $( docker ps -aq -f status=exited) "
3738DANGLING=" $( docker image ls -q -f dangling=true) "
3839
3940[ -n " $EXITED " ] && docker rm $EXITED
4041[ -n " $DANGLING " ] && docker rmi $EXITED
41-
42- cd src; git clean -dfx
You can’t perform that action at this time.
0 commit comments