mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Revert "app-shells/wttr-in: curl wrapper, maybe will be extended in the future"
This reverts commit 2b3560eb47.
See-also: https://bugs.gentoo.org/927922#c39
See-also: https://bugs.gentoo.org/927922#c41
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Vitaly Zdanevich</name>
|
||||
<email>zdanevich.vitaly@ya.ru</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright 2024 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Weather in terminal - just a curl to wttr.in"
|
||||
HOMEPAGE="https://wttr.in/"
|
||||
LICENSE="GPL-3"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="net-misc/curl"
|
||||
|
||||
S="$WORKDIR"
|
||||
|
||||
src_install() {
|
||||
dodir /usr/bin/
|
||||
echo "curl wttr.in/\$@" > "$ED/usr/bin/weather"
|
||||
fperms +x "/usr/bin/weather"
|
||||
# TODO add options from https://github.com/chubin/wttr.in#one-line-output
|
||||
# TODO wrap in a script to add support of '-h'?
|
||||
# TODO add `curl v2.wttr.in/batumi`
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Run weather command"
|
||||
einfo "You can specify the city with 'weather batumi'"
|
||||
einfo "For help: 'weather :help'"
|
||||
}
|
||||
Reference in New Issue
Block a user