void-packages/srcpkgs/wicd/template
Michal Vasilek e967c9fea3 wicd: switch to python3 fork
* remove -gtk subpackage, it still uses python2 libraries
2022-03-03 20:35:05 +01:00

47 lines
1.6 KiB
Bash

# Template file for 'wicd'
pkgname=wicd
version=1.7.4
revision=7
_ver=$version+tb2+2019.09.18git2e0ba579-1
wrksrc="$pkgname-debian-$_ver"
build_style="python3-module"
hostmakedepends="python3-setuptools python3-Babel"
depends="dbus-glib dhclient ethtool net-tools python3-dbus python3-gobject
python3-urwid wireless_tools wpa_supplicant"
checkdepends="$depends"
conf_files="
/etc/dbus-1/system.d/wicd.conf
/etc/wicd/encryption/templates/active"
short_desc="Open source wired and wireless network manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://wicd.sourceforge.net"
distfiles="https://salsa.debian.org/debian/wicd/-/archive/debian/$_ver/wicd-debian-$_ver.tar.gz"
checksum=bbcba281ad78421567625057d7b1a3aac6e9f32c817ce8bf1179945f2737e777
do_build() {
python3 setup.py configure --verbose --no-install-init \
--resume=/usr/share/wicd/scripts \
--suspend=/usr/share/wicd/scripts \
--python=/usr/bin/python3 --lib=/usr/lib \
--sbin=/usr/bin --distro=arch \
--no-install-gnome-shell-extensions \
--wicdgroup=network
}
post_install() {
# Copy configuration to force use of dhclient.
vinstall ${FILESDIR}/manager-settings.conf 755 etc/wicd
rm -r ${DESTDIR}/etc/xdg
rm ${DESTDIR}/usr/bin/wicd-{client,gtk}
rm -r ${DESTDIR}/usr/share/{applications,pixmaps,icons}
rm -r ${DESTDIR}/usr/share/wicd/{icons,gtk}
rm -r ${DESTDIR}/usr/share/doc/wicd/{AUTHORS,CHANGES,INSTALL,LICENSE}
rm ${DESTDIR}/usr/share/man/man1/wicd-client.1
rm ${DESTDIR}/usr/share/man/nl/man1/wicd-client.1
rm -r ${DESTDIR}/usr/lib/pm-utils
rm -r ${DESTDIR}/lib
vsv wicd
}