Compare commits
No commits in common. "1a92cb59634d7b0222bb1b6a65737595c3101f8c" and "09d1c1e33957648868d4757c73afa4e7935e2231" have entirely different histories.
1a92cb5963
...
09d1c1e339
16
build
16
build
@ -2,13 +2,13 @@
|
|||||||
set -e
|
set -e
|
||||||
[ -d cache ] || mkdir cache
|
[ -d cache ] || mkdir cache
|
||||||
SPAWN="systemd-nspawn -M gentoolooqsbuilder -D gentoo --bind=$(realpath ./out):/out --bind=$(realpath scripts):/scripts --bind=$(realpath cache):/var/cache/distfiles"
|
SPAWN="systemd-nspawn -M gentoolooqsbuilder -D gentoo --bind=$(realpath ./out):/out --bind=$(realpath scripts):/scripts --bind=$(realpath cache):/var/cache/distfiles"
|
||||||
export UNPRIVUSER="user"
|
|
||||||
|
|
||||||
su $UNPRIVUSER -c ./scripts/1-create.sh
|
|
||||||
./scripts/2-create.sh
|
SETUPSCRIPT="/scripts/3-setup-gentoo.sh"
|
||||||
${SPAWN} /scripts/3-setup-gentoo.sh
|
BUILDSCRIPT="/scripts/4-build-looqs.sh"
|
||||||
chown "$UNPRIVUSER" -R out
|
./scripts/1-create.sh
|
||||||
${SPAWN} su - builder -c /scripts/4-build-looqs.sh
|
sudo ./scripts/2-create.sh
|
||||||
chown "$UNPRIVUSER" -R out
|
sudo ${SPAWN} /${SETUPSCRIPT}
|
||||||
su $UNPRIVUSER -c "cd $(pwd); ./scripts/5-bundle.sh"
|
sudo ${SPAWN} su - builder -c /${BUILDSCRIPT}
|
||||||
|
./scripts/5-bundle.sh
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
|
|
||||||
LATEST=$( curl -L "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/latest-stage3-amd64-hardened-openrc.txt" | tail -n 1 | awk '{print $1}' )
|
set -e
|
||||||
wget "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/$LATEST" -O hardened.tar.xz
|
# TODO: always download latest
|
||||||
wget "https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/$LATEST.asc" -O hardened.tar.xz.asc
|
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/current-stage3-amd64-hardened-openrc/stage3-amd64-hardened-openrc-20220619T170540Z.tar.xz -O hardened.tar.xz
|
||||||
|
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/current-stage3-amd64-hardened-openrc/stage3-amd64-hardened-openrc-20220619T170540Z.tar.xz.asc -O hardened.tar.xz.asc
|
||||||
gpg --verify hardened.tar.xz.asc hardened.tar.xz
|
gpg --verify hardened.tar.xz.asc hardened.tar.xz
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,13 +5,10 @@ mkdir --parents /etc/portage/repos.conf
|
|||||||
cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf
|
cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf
|
||||||
emerge-webrsync
|
emerge-webrsync
|
||||||
|
|
||||||
echo 'USE="X vulkan jpeg png icu cairo -accessibility -debug -dbus"' >> /etc/portage/make.conf
|
export USE="X jpeg png icu -accessibility -debug -dbus cairo"
|
||||||
emerge -v --update --newuse --deep @world
|
|
||||||
|
|
||||||
emerge -v qtcore qtgui uchardet
|
emerge -v qtcore qtgui uchardet
|
||||||
emerge -v qtwidgets qtsql qtnetwork qtconcurrent
|
emerge -v qtwidgets qtsql qtnetwork qtconcurrent
|
||||||
emerge -v qtsvg
|
export USE="X jpeg png icu -accessibility -debug -dbus qt5 cairo minizip"
|
||||||
export USE="minizip qt5"
|
|
||||||
emerge -v app-text/poppler
|
emerge -v app-text/poppler
|
||||||
emerge -v dev-libs/quazip
|
emerge -v dev-libs/quazip
|
||||||
emerge -v dev-vcs/git
|
emerge -v dev-vcs/git
|
||||||
|
@ -31,7 +31,7 @@ done
|
|||||||
cp -a /usr/lib64/libcrypto* /out/lib/
|
cp -a /usr/lib64/libcrypto* /out/lib/
|
||||||
cp -a /usr/lib64/qt5/plugins /out/lib/
|
cp -a /usr/lib64/qt5/plugins /out/lib/
|
||||||
|
|
||||||
for lib in $( ldd gui/looqs-gui | awk '{print $3}' | grep so | grep -vE "libGL|libm.so|libc|harfbuzz|fontconfig|libgcc|freetype|libX11|libQt" ) ; do
|
for lib in $( ldd gui/looqs-gui | awk '{print $3}' | grep so | grep -vE "libGL|libm|libc|fontconfig|libgcc|freetype|libX11|libQt" ) ; do
|
||||||
cp "$lib" /out/lib/
|
cp "$lib" /out/lib/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -4,17 +4,10 @@ set -e
|
|||||||
|
|
||||||
DIRNAME="looqs-${TAG}"
|
DIRNAME="looqs-${TAG}"
|
||||||
ARCHIVENAME="${DIRNAME}.tar.xz"
|
ARCHIVENAME="${DIRNAME}.tar.xz"
|
||||||
rm -rf $DIRNAME*
|
mv out ${DIRNAME}
|
||||||
cp -a out ${DIRNAME}
|
|
||||||
cp src/looqs-gui ${DIRNAME}
|
cp src/looqs-gui ${DIRNAME}
|
||||||
cp src/looqs ${DIRNAME}
|
cp src/looqs ${DIRNAME}
|
||||||
chmod 755 src/looqs-gui
|
chmod 755 src/looqs-gui
|
||||||
chmod 755 src/looqs
|
chmod 755 src/looqs
|
||||||
|
|
||||||
patchelf --set-rpath '$ORIGIN/../lib/' ${DIRNAME}/bin/*
|
|
||||||
patchelf --set-rpath '$ORIGIN' ${DIRNAME}/lib/*.so*
|
|
||||||
patchelf --set-rpath '$ORIGIN/../../' $( find "${DIRNAME}/lib/plugins/" | grep so$ )
|
|
||||||
|
|
||||||
|
|
||||||
tar cfpvJ "${DIRNAME}".tar.xz "${DIRNAME}"
|
tar cfpvJ "${DIRNAME}".tar.xz "${DIRNAME}"
|
||||||
gpg --batch --no-tty -b --local-user "$SIGNING_KEY_EMAIL" "$ARCHIVENAME"
|
gpg -b --local-user "$SIGNING_KEY_EMAIL" "$ARCHIVENAME"
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
SELF=$(readlink -f "$0")
|
SELF=$(readlink -f "$0")
|
||||||
HERE=${SELF%/*}
|
HERE=${SELF%/*}
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH="/${HERE}/lib"
|
||||||
export QT_PLUGIN_PATH="/${HERE}/lib/plugins"
|
export QT_PLUGIN_PATH="/${HERE}/lib/plugins"
|
||||||
./bin/looqs
|
./bin/looqs
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
SELF=$(readlink -f "$0")
|
SELF=$(readlink -f "$0")
|
||||||
HERE=${SELF%/*}
|
HERE=${SELF%/*}
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH="/${HERE}/lib"
|
||||||
export QT_PLUGIN_PATH="/${HERE}/lib/plugins"
|
export QT_PLUGIN_PATH="/${HERE}/lib/plugins"
|
||||||
"${HERE}/bin/looqs-gui"
|
"${HERE}/bin/looqs-gui"
|
||||||
|
Loading…
Reference in New Issue
Block a user