diff options
Diffstat (limited to 'scripts/obs/data/build_deb.sh')
-rwxr-xr-x | scripts/obs/data/build_deb.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/obs/data/build_deb.sh b/scripts/obs/data/build_deb.sh new file mode 100755 index 0000000..931919d --- /dev/null +++ b/scripts/obs/data/build_deb.sh @@ -0,0 +1,25 @@ +#!/bin/sh -ex + +apt_get="apt-get" +if [ -n "$INSIDE_DOCKER" ]; then + export DEBIAN_FRONTEND=noninteractive + apt_get="apt-get -y" +fi + +su "$BUILDUSER" -c "tar -C _temp/binpkgs -xvf _temp/srcpkgs/$PACKAGE/*.tar.*" +cd _temp/binpkgs/* + +$apt_get update +$apt_get build-dep . + +if [ -n "$INSIDE_DOCKER" ]; then + ip link set eth0 down +fi + +su "$BUILDUSER" -c "dpkg-buildpackage -us -uc -j$JOBS" + +# Show contents +cd .. +for i in *.deb; do + dpkg -c "$i" +done |