From b0d7870ec6bd3d4c339ee43650a8d54810d8f2ac Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 24 Jul 2023 17:20:54 +0200 Subject: [PATCH] ports: Add minitar (with examples!) --- ports/minitar/PACKAGE | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ports/minitar/PACKAGE diff --git a/ports/minitar/PACKAGE b/ports/minitar/PACKAGE new file mode 100644 index 00000000..93c35566 --- /dev/null +++ b/ports/minitar/PACKAGE @@ -0,0 +1,30 @@ +# Basic information +name="minitar" +version="1.7.5" + +# Download options +format="git" +url="https://git.cloudapio.eu/apio/minitar.git" +tag="$version" + +# Build instructions +do_configure() +{ + cmake -S $srcdir -B $builddir -DCMAKE_C_COMPILER=$LUNA_ARCH-luna-gcc +} + +do_build() +{ + # Also build the examples + cmake --build $builddir --target examples +} + +do_install() +{ + mkdir -p $installdir/usr/lib/ + cp $builddir/libmtar.a $installdir/usr/lib/ + mkdir -p $installdir/usr/bin/ + cp $builddir/examples/pack $builddir/examples/untar $builddir/examples/list $installdir/usr/bin/ + mkdir -p $installdir/usr/include/ + cp $srcdir/minitar.h $installdir/usr/include/ +}