diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
commit | 46eedbedafdb0040c37884982d4c775ce277fb7b (patch) | |
tree | db33a91259730be84999e13a8d8168c799f50ac0 /sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild | |
parent | e23a08d0c97a0cc415aaa165da840b056f93c997 (diff) |
gentoo resync : 20.10.2021
Diffstat (limited to 'sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild')
-rw-r--r-- | sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild b/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild new file mode 100644 index 000000000000..68975bc30884 --- /dev/null +++ b/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="An application for viewing, editing and converting GPS data." +HOMEPAGE="http://activityworkshop.net/software/gpsprune/index.html" +SRC_URI="http://activityworkshop.net/software/gpsprune/gpsprune_${PV}.jar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/jre:*" +RDEPEND="${DEPEND}" + +gpsprune_bin="${WORKDIR}/gpsprune" +gpsprune_desktop="${WORKDIR}/gpsprune.desktop" + +S="${WORKDIR}" + +src_prepare() +{ + default + + # Provide the necessary files + cp "${DISTDIR}/${A}" "${WORKDIR}" || die + for size in 128 96 72 64 48 36 32 24 22 16; do + mkdir -p "${WORKDIR}/icons/$size" + cp "${WORKDIR}/tim/prune/gui/images/window_icon_${size}.png" "${WORKDIR}/icons/$size/gpsprune.png" || die + done + + # Generate an executable + cat <<-EOF > "${gpsprune_bin}" || die + #!/bin/sh + java -jar /opt/gpsprune/gpsprune_${PV}.jar \$@ + EOF + + # Generate a .desktop file + cat <<-EOF > "${gpsprune_desktop}" || die + [Desktop Entry] + Name=GpsPrune + Type=Application + Comment=Application for viewing, editing and converting coordinate data from GPS systems + Exec=gpsprune + Icon=gpsprune + Categories=Science;Geoscience; + EOF +} + +src_install() +{ + insinto /opt/gpsprune + doins "gpsprune_${PV}.jar" + exeinto /usr/bin + doexe "${gpsprune_bin}" + + for size in 128 96 72 64 48 36 32 24 22 16; do + insinto "/usr/share/icons/hicolor/${size}x${size}/apps" + doins "icons/${size}/gpsprune.png" + done + + insinto /usr/share/applications + doins gpsprune.desktop +} |