app-arch/gxz: new package, add 0.5.12

An alt xz implementation written in pure Go (with no deps too!).

Not abandoning the king xz-utils, but need this to do some comparison work.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-04-05 06:10:40 +01:00
parent 64e83696fd
commit 6823bf88c8
3 changed files with 35 additions and 0 deletions

1
app-arch/gxz/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST gxz-0.5.12.tar.gz 4176087 BLAKE2B 0bf4795ec1d008ef956d42d9d78b3f3f65bb9555436c64869a82aa6c058ac3aa5e8912a8e451cdafccaeaf4d9bb30404e2cd60a00f620baf01e6b6d892d59a3f SHA512 13928dfbd8514eb7c778a84405ba2342159da8f59783f82b5774643190b12d5fc1aed927b67946d5ef246d5cc61b3be23eaa08695c61aea70229617b1ce757ff

View File

@@ -0,0 +1,23 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Pure golang package for reading and writing xz-compressed files"
HOMEPAGE="https://github.com/ulikunitz/xz"
SRC_URI="https://github.com/ulikunitz/xz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/xz-${PV}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
ego build ./cmd/gxz
}
src_install() {
dobin gxz
}

11
app-arch/gxz/metadata.xml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>sam@gentoo.org</email>
<name>Sam James</name>
</maintainer>
<upstream>
<remote-id type="github">ulikunitz/xz</remote-id>
</upstream>
</pkgmetadata>