mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
22 lines
517 B
Bash
22 lines
517 B
Bash
# 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"
|
|
|
|
src_install(){
|
|
default
|
|
dosym "$(which tinyxxd)" /usr/bin/xxd
|
|
}
|