Skip to content

Commit

Permalink
Building native packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
laeti-tia committed Sep 22, 2021
1 parent ba1297e commit 8b86a6b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ps-binary-builder
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b86a6b

Please sign in to comment.