pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import pbzx-1.0.2 as wip/pbzx



Module Name:	pkgsrc-wip
Committed By:	Dean Matzkov <bapabooiee%gmail.com@localhost>
Pushed By:	bapa
Date:		Sat Feb 2 13:02:08 2019 -0700
Changeset:	f5f5bb341b381edfe64227fc0aeef2ec4b88c730

Modified Files:
	Makefile
Added Files:
	pbzx/DESCR
	pbzx/Makefile
	pbzx/PLIST
	pbzx/distinfo

Log Message:
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

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f5f5bb341b381edfe64227fc0aeef2ec4b88c730

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile      |  1 +
 pbzx/DESCR    |  4 ++++
 pbzx/Makefile | 32 ++++++++++++++++++++++++++++++++
 pbzx/PLIST    |  3 +++
 pbzx/distinfo |  6 ++++++
 5 files changed, 46 insertions(+)

diffs:
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@localhost
+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


Home | Main Index | Thread Index | Old Index