Implemented ipkg.

This commit is contained in:
Faerbit 2018-09-15 10:53:21 +02:00
parent 8a08f52851
commit 76d298ac8d

View File

@ -1,4 +1,20 @@
#!/bin/bash
echo "Not yet implemented"
exit 1
PKGDIR="${FPKG_ROOT}/pkg"
DESTDIR="${FPKG_ROOT}/"
if [ $# -ne 1 ]
then
echo "Did not specify exactly one argument"
exit 1
fi
pkg_version=$(qpkg "$1")
if [ $? -ne 0 ]
then
echo $pkg_version
exit 1
fi
cd "$DESTDIR"
zstd -qcd "$PKGDIR/$1-$pkg_version.tar.zst" | tar vxf - --same-owner