ports: Add minitar (with examples!)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-07-24 17:20:54 +02:00
parent 9a00b29304
commit b0d7870ec6
Signed by: apio
GPG Key ID: B8A7D06E42258954

30
ports/minitar/PACKAGE Normal file
View File

@ -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/
}