Skip to content

Commit 3f45777

Browse files
committed
compile-qtwayland5.sh without checkinstall
1 parent e6ac38f commit 3f45777

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

userspace/compile-qtwayland5.sh

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,24 @@ git apply /tmp/agnos/patch-qtwayland-v5.12
4040
# https://stackoverflow.com/a/75855054/639708
4141
ln -s libdl.so.2 /usr/lib/aarch64-linux-gnu/libdl.so
4242

43-
mkdir /tmp/build && cd /tmp/build
44-
qmake /tmp/qtwayland
45-
43+
qmake
4644
export MAKEFLAGS="-j$(nproc)"
4745
make
4846

49-
# remove "--fstrans=no" when checkinstall is fixed (still not fixed in 24.04)
50-
# # https://bugs.launchpad.net/ubuntu/+source/checkinstall/+bug/78455
51-
checkinstall -yD --install=no --fstrans=no --pkgversion="${VERSION}" --pkgname=qtwayland5 --pkgarch=arm64 --replaces=qtwayland5,libqt5waylandclient5,libqt5waylandcompositor5
52-
mv qtwayland5*.deb /tmp/qtwayland5.deb
47+
OUTPUT_DIR=/tmp/qtwayland5
48+
mkdir $OUTPUT_DIR
49+
make install INSTALL_ROOT=$OUTPUT_DIR
50+
51+
mkdir $OUTPUT_DIR/DEBIAN
52+
cat << EOF > $OUTPUT_DIR/DEBIAN/control
53+
Package: qtwayland5
54+
Version: ${VERSION}-1
55+
Architecture: all
56+
Maintainer: Andrei Radulescu <andi.radulescu@gmail.com>
57+
Replaces: qtwayland5, libqt5waylandclient5, libqt5waylandcompositor5
58+
Installed-Size: `du -s $OUTPUT_DIR | awk '{print $1}'`
59+
Homepage: https://comma.ai
60+
Description: Patched qtwayland that outputs a fixed screen size
61+
EOF
62+
63+
dpkg-deb --root-owner-group --build $OUTPUT_DIR /tmp/qtwayland5.deb

0 commit comments

Comments
 (0)