From 8b86a6bb42a6b9fb3aef058600990d6e0fe2eab9 Mon Sep 17 00:00:00 2001 From: Antoine Delvaux Date: Wed, 22 Sep 2021 15:19:23 +0100 Subject: [PATCH] Building native packages. --- ps-binary-builder | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ps-binary-builder b/ps-binary-builder index 355f554..09953e9 100755 --- a/ps-binary-builder +++ b/ps-binary-builder @@ -33,8 +33,13 @@ fi # Extract source package mkdir -p $BUILD_DIR -tar -x -C $BUILD_DIR --strip-components 1 -f *.orig.* -tar -x -C $BUILD_DIR -f *.debian.* +if grep -q '(native)' *.dsc ; then + echo "This is a Debian native package, there is no orig tarball." + tar -x -C $BUILD_DIR --strip-components 1 -f *.tar.xz +else + tar -x -C $BUILD_DIR --strip-components 1 -f *.orig.* + tar -x -C $BUILD_DIR -f *.debian.* +fi cd $BUILD_DIR # If we were given an second argument, we run it as a command, cheap debugging