ports: Add minitar (with examples!)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9a00b29304
commit
b0d7870ec6
30
ports/minitar/PACKAGE
Normal file
30
ports/minitar/PACKAGE
Normal 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/
|
||||
}
|
Loading…
Reference in New Issue
Block a user