06.02.2025 00:29, Klemens Nanni пишет: > They also provide .tar.xz tarballs which are noticably smaller than .tar.gz > if you want to use those; data's do-install would need adjusting, though. > bsd.port.mk's EXTRACT_CASES has our 'xz | tar' idiom for that.
Feedback? OK? Index: Makefile.inc =================================================================== RCS file: /cvs/ports/games/0ad/Makefile.inc,v diff -u -p -r1.17 Makefile.inc --- Makefile.inc 8 Feb 2025 22:13:43 -0000 1.17 +++ Makefile.inc 9 Feb 2025 15:26:28 -0000 @@ -8,6 +8,7 @@ HOMEPAGE = https://play0ad.com/ SITES = https://releases.wildfiregames.com/ \ ${SITE_SOURCEFORGE:=zero-ad/} +EXTRACT_SUFX = .tar.xz # GPLv2+, MIT for libs, CC-BY-SA for data PERMIT_PACKAGE = Yes Index: base/distinfo =================================================================== RCS file: /cvs/ports/games/0ad/base/distinfo,v diff -u -p -r1.11 distinfo --- base/distinfo 8 Feb 2025 22:13:43 -0000 1.11 +++ base/distinfo 9 Feb 2025 15:26:38 -0000 @@ -1,2 +1,2 @@ -SHA256 (0ad-0.27.0-unix-build.tar.gz) = b97A4N780ipdu8L3fpTPEGA7qozQgch2N1olVF1MoGg= -SIZE (0ad-0.27.0-unix-build.tar.gz) = 153796770 +SHA256 (0ad-0.27.0-unix-build.tar.xz) = qpSFcAl1DV9h2/AWvBUOO9y9s6zfyK0gtzq4tD6aG6Y= +SIZE (0ad-0.27.0-unix-build.tar.xz) = 152170976 Index: data/Makefile =================================================================== RCS file: /cvs/ports/games/0ad/data/Makefile,v diff -u -p -r1.7 Makefile --- data/Makefile 8 Feb 2025 22:13:43 -0000 1.7 +++ data/Makefile 9 Feb 2025 15:25:16 -0000 @@ -7,10 +7,10 @@ PKG_ARCH = * NO_BUILD = Yes NO_TEST = Yes -EXTRACT_ONLY = +EXTRACT_ONLY = # empty do-install: - tar -zxf ${FULLDISTDIR}/${DISTFILES} -C ${PREFIX}/share \ - -s ",0ad-${V}/binaries/data/,0ad/,g" + xz -T${MAKE_JOBS} -d <${FULLDISTDIR}/${DISTFILES} | ${TAR} -xf - \ + -C ${PREFIX}/share/ -s ',0ad-${V}/binaries/data/,0ad/,g' .include <bsd.port.mk> Index: data/distinfo =================================================================== RCS file: /cvs/ports/games/0ad/data/distinfo,v diff -u -p -r1.11 distinfo --- data/distinfo 8 Feb 2025 22:13:43 -0000 1.11 +++ data/distinfo 9 Feb 2025 15:26:56 -0000 @@ -1,2 +1,2 @@ -SHA256 (0ad-0.27.0-unix-data.tar.gz) = fXCsKob3y2f/2MLZNMv82OVStmDxOtHrtEUacBkXiM0= -SIZE (0ad-0.27.0-unix-data.tar.gz) = 1729474590 +SHA256 (0ad-0.27.0-unix-data.tar.xz) = PkiFWrjh74EnAzhGLIJwsBUhPxT14FSquSrXTV6lneo= +SIZE (0ad-0.27.0-unix-data.tar.xz) = 1367701984