diff --git a/src/ipkg b/src/ipkg index bde2317..3cc0e93 100755 --- a/src/ipkg +++ b/src/ipkg @@ -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