canutethegreat-overlay/net-misc/freedownloadmanager/freedownloadmanager-6.19.0.5156.ebuild

57 lines
1.1 KiB
Bash
Raw Normal View History

2023-04-20 10:52:55 -07:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
2023-09-13 21:06:47 -07:00
EAPI=8
inherit xdg-utils font
2023-04-20 10:52:55 -07:00
KEYWORDS="~amd64"
DESCRIPTION="Free Download Manager allows you to adjust traffic usage, organize downloads, control file priorities for torrents, efficiently download large files and resume broken downloads."
HOMEPAGE="https://www.freedownloadmanager.org/"
SRC_URI="https://files2.freedownloadmanager.org/6/latest/freedownloadmanager.deb"
SLOT="0"
RESTRICT="strip"
LICENSE="GPL-2"
IUSE=""
RDEPEND="
dev-libs/openssl
x11-misc/xdg-utils
media-video/ffmpeg
dev-qt/qtcore:5
dev-qt/qtgui:5
net-libs/libtorrent
"
DEPEND="
"
S="${WORKDIR}"
src_prepare() {
2023-04-20 10:58:47 -07:00
unpack ./control.tar.xz
unpack ./data.tar.xz
2023-04-20 10:52:55 -07:00
eapply_user
}
src_install() {
2023-04-20 11:29:14 -07:00
local FDMROOT=/opt/freedownloadmanager
2023-04-20 10:52:55 -07:00
doins -r opt
doins -r usr
2023-04-20 11:29:14 -07:00
make_desktop_entry "fdm" "Free Download Manager" "" "Network"
make_wrapper fdm ${FDMROOT}/fdm ${FDMROOT} ${FDMROOT}/lib /opt/bin
2023-04-20 10:52:55 -07:00
}
pkg_postinst() {
2023-04-20 11:23:58 -07:00
xdg_icon_cache_update
2023-04-20 11:21:55 -07:00
chmod +x /opt/freedownloadmanager/fdm
2023-04-20 10:52:55 -07:00
}
pkg_postrm() {
2023-04-20 10:54:44 -07:00
xdg_icon_cache_update
2023-04-20 10:52:55 -07:00
}