canutethegreat-overlay/net-ftp/filezillapro/filezillapro-3.55.1.ebuild

74 lines
1.6 KiB
Bash
Raw Permalink Normal View History

2021-09-30 14:59:23 -07:00
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
WX_GTK_VER="3.0-gtk3"
2021-09-30 15:23:50 -07:00
inherit wxwidgets xdg
2021-09-30 14:59:23 -07:00
MY_PV="${PV/_/-}"
MY_P="FileZilla_Pro_${MY_PV}"
DESCRIPTION="Commercial verison of FileZilla"
HOMEPAGE="https://filezillapro.com/"
2021-09-30 15:40:25 -07:00
SRC_URI="https://filezillapro.com/FileZilla_Pro_${PV}_x86_64-linux-gnu.tar.bz2"
2021-09-30 14:59:23 -07:00
SLOT="0"
KEYWORDS="~amd64"
# pugixml 1.7 minimal dependency is for c++11 proper configuration
RDEPEND="
!!net-ftp/filezilla
>=app-eselect/eselect-wxwidgets-0.7-r1
>=dev-libs/nettle-3.1:=
>=dev-db/sqlite-3.7
>=dev-libs/pugixml-1.7
>=net-libs/gnutls-3.5.7
>=x11-libs/wxGTK-3.0.4:${WX_GTK_VER}[X]
2021-09-30 15:23:50 -07:00
x11-misc/xdg-utils"
DEPEND="${RDEPEND}"
2021-09-30 14:59:23 -07:00
RESTRICT="fetch"
2021-09-30 15:42:24 -07:00
S="${WORKDIR}"
2021-09-30 14:59:23 -07:00
pkg_nofetch() {
einfo "Please download"
2021-09-30 15:40:25 -07:00
#einfo " - FileZilla_Pro_${PV}_x86_64-linux-gnu.tar.bz2"
2021-09-30 15:33:53 -07:00
einfo " - ${A}"
2021-09-30 14:59:23 -07:00
einfo "from ${HOMEPAGE} and place it in your DISTDIR directory."
}
src_unpack() {
2021-09-30 15:52:43 -07:00
unpack ${A} || die
cd ${WORKDIR} || die
2021-09-30 16:00:05 -07:00
mkdir opt || die
mv FileZilla3 opt/ || die
2021-09-30 14:59:23 -07:00
}
src_install() {
2021-09-30 16:00:05 -07:00
doins -r opt
2021-09-30 16:14:57 -07:00
fperms +x /opt/FileZilla3/bin/filezilla
fperms +x /opt/FileZilla3/bin/fzputtygen
fperms +x /opt/FileZilla3/bin/fzsftp
fperms +x /opt/FileZilla3/bin/fzstorj
2021-09-30 16:07:13 -07:00
dodir /opt/bin
dosym ../FileZilla3/bin/filezilla /opt/bin/filezilla
dosym ../FileZilla3/bin/fzputtygen /opt/bin/fzputtygen
dosym ../FileZilla3/bin/fzsftp /opt/bin/fzsftp
dosym ../FileZilla3/bin/fzstorj /opt/bin/fzstorj
2021-09-30 14:59:23 -07:00
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
xdg_icon_cache_update
}