Import pbzx-1.0.2 as wip/pbzx

pbzx is a tool to extract files compressed with Apple's PBZX archive
format, which is commonly used for CPIO payloads in their .PKG files.

Homepage: https://github.com/NiklasRosenstein/pbzx
This commit is contained in:
Dean Matzkov 2019-02-02 13:02:08 -07:00
parent 1e26435fe7
commit f5f5bb341b
5 changed files with 46 additions and 0 deletions

View File

@ -2717,6 +2717,7 @@ SUBDIR+= pbbam
SUBDIR+= pbbuttonsd
SUBDIR+= pbcopper
SUBDIR+= pbseqan
SUBDIR+= pbzx
SUBDIR+= pcmanfm-qt
SUBDIR+= pcp
SUBDIR+= pcsx

4
pbzx/DESCR Normal file
View File

@ -0,0 +1,4 @@
Pbzx is a format employed in later versions of OSX disk images (starting with
10.10) to encode payload data in .pkg files.
Pbzx unpacks .pkg files and outputs to stdout to be unpacked with cpio.

32
pbzx/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $NetBSD$
DISTNAME= pbzx-1.0.2
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_GITHUB:=NiklasRosenstein/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/NiklasRosenstein/pbzx
COMMENT= Tool to extract Apple PBZX-compressed files
LICENSE= gnu-gpl-v3
# Might work for other platforms, but they'd need libxar.so
ONLY_FOR_PLATFORM= Darwin-*-*
USE_LANGUAGES= c
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/doc/${PKGBASE}
do-build:
cd ${WRKSRC} && \
${MAKE_ENV} ${CC} ${CFLAGS} ${LDFLAGS} \
-llzma -lxar pbzx.c -o pbzx
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pbzx ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../archivers/xz/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
pbzx/PLIST Normal file
View File

@ -0,0 +1,3 @@
@comment $NetBSD$
bin/pbzx
share/doc/pbzx/README.md

6
pbzx/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (pbzx-1.0.2.tar.gz) = d4501a49c7400aa85194919356a570b1fbfbd6a2
RMD160 (pbzx-1.0.2.tar.gz) = dd6f158ce5d1e5bb5fb7913ce77bd50c2ffc4ca9
SHA512 (pbzx-1.0.2.tar.gz) = ab12ee9c99513ad00dc620e683f8f180f2b1bc486de3aae618e54f6784e2d1b6674b0f3bf80ec0d7a402cda32156829228b3694a27270e62529959e19e7fe848
Size (pbzx-1.0.2.tar.gz) = 16083 bytes