dev-util/tinyxxd: new package, add 1.3.7, 9999

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
ingenarel
2025-07-17 14:46:36 +06:00
parent 78a86468a4
commit 976fd0cf59
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Drop-in replacement and standalone version of xxd"
HOMEPAGE="https://github.com/xyproto/tinyxxd"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/xyproto/tinyxxd.git"
else
SRC_URI="https://github.com/xyproto/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
src_install(){
default
dosym "$(which tinyxxd)" /usr/bin/xxd
}