Add lpkg.

This commit is contained in:
Faerbit 2018-09-15 10:46:26 +02:00
parent 9ace44f799
commit 8a08f52851
3 changed files with 24 additions and 0 deletions

View File

@ -14,5 +14,6 @@ install:
install -d -m 755 $(DESTDIR)$(BINDIR)
install -m 755 src/cpkg $(DESTDIR)$(BINDIR)
install -m 755 src/qpkg $(DESTDIR)$(BINDIR)
install -m 755 src/lpkg $(DESTDIR)$(BINDIR)
install -m 755 src/ipkg $(DESTDIR)$(BINDIR)
install -m 755 src/rpkg $(DESTDIR)$(BINDIR)

View File

@ -34,6 +34,11 @@ cpkg make install # DESTDIR is set by cpkg
qpkg foo
```
**l**ist **p**ac**k**a**g**e contents:
``` bash
lpkg foo
```
**i**nstall **p**ac**k**a**g**e:
``` bash
ipkg foo

18
src/lpkg Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
PKGDIR="${FPKG_ROOT}/pkg"
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
zstd -qcd "$PKGDIR/$1-$pkg_version.tar.zst" | tar tf -