From 12149ad2e7835d67f79680e62185314a1e2545ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 17 Jun 2020 00:34:37 +0200 Subject: [PATCH] fetchmail: fix and split fetchmailconf, update to python3, adopt --- srcpkgs/fetchmail/template | 21 +++++++++++++++++---- srcpkgs/fetchmailconf | 1 + 2 files changed, 18 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/fetchmailconf diff --git a/srcpkgs/fetchmail/template b/srcpkgs/fetchmail/template index 67287b439b..ef4016788b 100644 --- a/srcpkgs/fetchmail/template +++ b/srcpkgs/fetchmail/template @@ -1,15 +1,28 @@ # Template file for 'fetchmail' pkgname=fetchmail version=6.4.8 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-ssl=${XBPS_CROSS_BASE}/usr" -hostmakedepends="python-devel" +hostmakedepends="python3" makedepends="libressl-devel" -depends="python" +depends="fetchmailconf" short_desc="Remote-mail retrieval utility" -maintainer="Orphaned " +maintainer="Piotr Wójcik " license="GPL-2.0-only" homepage="http://fetchmail.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz" checksum=26cd936ece146e056cdf79a676a33738b4eab0a5ae2edf3fce5ba034721b09bd + +post_install() { + vsed -i -e 's,/usr/bin/python ,/usr/bin/python3 ,' "${DESTDIR}/usr/bin/fetchmailconf" +} + +fetchmailconf_package() { + depends="python3-future python3-tkinter" + pkg_install() { + vmove usr/bin/fetchmailconf + vmove usr/share/man/man1/fetchmailconf.1 + vmove "${py3_sitelib}" + } +} diff --git a/srcpkgs/fetchmailconf b/srcpkgs/fetchmailconf new file mode 120000 index 0000000000..4a537a0bf5 --- /dev/null +++ b/srcpkgs/fetchmailconf @@ -0,0 +1 @@ +fetchmail \ No newline at end of file