Use fakeroot to build the debian package in the CI

This commit is contained in:
pancake authored and GitHub committed 2023-01-08 18:22:16 +01:00
1 parent 0f57a9bdd5
commit 1f21ed33a9
1 file changed
+9 -1
+9 -1
View File
@@ -1,5 +1,12 @@
#!/bin/sh
type fakeroot > /dev/null 2>&1
if [ $? = 0 ]; then
FAKEROOT=fakeroot
else
FAKEROOT=sudo
fi
r2 -qv
if [ $? != 0 ]; then
@@ -25,4 +32,5 @@ make R2_PLUGDIR=${R2_LIBR_PLUGINS} DESTDIR=${DESTDIR}
./configure --prefix=/usr
make -j4
sudo make install DESTDIR="${DESTDIR}"
strip --strip-unneeded src/core_ghidra.so
${FAKEROOT} make install DESTDIR="${DESTDIR}"