Implemented ipkg.
This commit is contained in:
parent
8a08f52851
commit
76d298ac8d
18
src/ipkg
18
src/ipkg
@ -1,4 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Not yet implemented"
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user