mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
Adds support for 'show --latest' to get the latest available version of Swift on the system. Signed-off-by: Itai Ferber <itai@itaiferber.net>
25 lines
452 B
Bash
25 lines
452 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Manages Swift symlinks"
|
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="app-admin/eselect"
|
|
|
|
src_install() {
|
|
insinto /usr/share/eselect/modules
|
|
newins "${FILESDIR}/swift-${PVR}.eselect" swift.eselect || die
|
|
}
|
|
|
|
pkg_postinst() {
|
|
eselect swift update
|
|
}
|