app-misc/fastfetch: add 1.0.0

Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
This commit is contained in:
Viorel Munteanu
2022-03-20 21:01:52 +02:00
parent 9b7b22b77d
commit 13246eee06
3 changed files with 58 additions and 17 deletions

View File

@@ -11,10 +11,7 @@ if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/LinusDierheimer/fastfetch.git"
else
COMMIT="0cb6e40bacfed8c217afc4bd580b7905d6d6893b"
VERSION_REV="0cb6e40"
SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
SRC_URI="https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="MIT"
@@ -54,18 +51,5 @@ src_configure() {
-DENABLE_XFCONF=$(usex xfce)
)
if [[ ${PV} == *9999 ]]; then
elog "REV=\"r$(git rev-list --count HEAD)\""
elog "COMMIT=\"$(git rev-parse HEAD)\""
elog "VERSION_REV=\"$(git rev-parse --short HEAD)\""
else
# version comes from git, fake it
local project_version_major=$(ver_cut 2)
mycmakeargs+=(
-DPROJECT_VERSION="r${project_version_major}.${VERSION_REV}"
-DPROJECT_VERSION_MAJOR="${project_version_major}"
)
fi
cmake_src_configure
}