diff --git a/Makefile b/Makefile index b59390e802..728b4c7b90 100644 --- a/Makefile +++ b/Makefile @@ -2717,6 +2717,7 @@ SUBDIR+= pbbam SUBDIR+= pbbuttonsd SUBDIR+= pbcopper SUBDIR+= pbseqan +SUBDIR+= pbzx SUBDIR+= pcmanfm-qt SUBDIR+= pcp SUBDIR+= pcsx diff --git a/pbzx/DESCR b/pbzx/DESCR new file mode 100644 index 0000000000..4986429ffe --- /dev/null +++ b/pbzx/DESCR @@ -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. diff --git a/pbzx/Makefile b/pbzx/Makefile new file mode 100644 index 0000000000..628cab3406 --- /dev/null +++ b/pbzx/Makefile @@ -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" diff --git a/pbzx/PLIST b/pbzx/PLIST new file mode 100644 index 0000000000..f4db82aa3a --- /dev/null +++ b/pbzx/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD$ +bin/pbzx +share/doc/pbzx/README.md diff --git a/pbzx/distinfo b/pbzx/distinfo new file mode 100644 index 0000000000..57744cca3d --- /dev/null +++ b/pbzx/distinfo @@ -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