Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 9b2cb78

Browse files
committed
Build mg3a inside the container
1 parent b256153 commit 9b2cb78

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

xtras/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG CACHEBUST=1
44
RUN 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 && \

xtras/bin/mkmg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2-
cd ${HOME}/src
2+
cd ${HOME}
3+
git clone --depth 1 https://github.com/paaguti/mg3a src
4+
cd src
35
fakeroot debian/rules clean binary
46
mv ../mg3a*.deb ${HOME}/debs

xtras/build-deb.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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

1415
IMAGE=jammy
1516
PRG=/usr/local/bin/mkmg
@@ -26,17 +27,15 @@ echo "Compiling for ${IMAGE}..."
2627

2728
docker -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

3637
EXITED="$(docker ps -aq -f status=exited)"
3738
DANGLING="$(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

0 commit comments

Comments
 (0)