2009-11-30 22:30:06 +00:00
|
|
|
# Template file for 'wicd'
|
|
|
|
pkgname=wicd
|
2014-12-22 08:50:04 +00:00
|
|
|
version=1.7.3
|
2015-02-15 17:37:44 +00:00
|
|
|
revision=4
|
2014-01-01 15:10:11 +00:00
|
|
|
noarch=yes
|
2014-12-22 08:50:04 +00:00
|
|
|
build_options="systemd"
|
2014-09-15 15:11:21 +00:00
|
|
|
hostmakedepends="python python-setuptools python-Babel"
|
2014-06-20 09:44:44 +00:00
|
|
|
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
|
2014-01-01 15:10:11 +00:00
|
|
|
rfkill wireless_tools wpa_supplicant"
|
|
|
|
pycompile_module="wicd"
|
|
|
|
pycompile_dirs="usr/lib/wicd usr/share/wicd"
|
|
|
|
conf_files="
|
|
|
|
/etc/dbus-1/system.d/wicd.conf
|
|
|
|
/etc/wicd/encryption/templates/active"
|
2009-11-30 22:30:06 +00:00
|
|
|
short_desc="Open source wired and wireless network manager"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-07-10 12:43:41 +00:00
|
|
|
homepage="http://wicd.sourceforge.net"
|
|
|
|
license="GPL-2"
|
2013-07-28 15:58:26 +00:00
|
|
|
distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
|
2014-12-22 08:50:04 +00:00
|
|
|
checksum=91e38857b1651d242ed7e3b3e3fd8b076b4d06a23eedb033310fae510ece8401
|
2014-09-15 15:09:05 +00:00
|
|
|
|
2013-07-28 15:58:26 +00:00
|
|
|
do_build() {
|
2014-09-15 15:09:05 +00:00
|
|
|
if [ "${build_option_systemd}" ]; then
|
|
|
|
_args="--systemd=/usr/lib/systemd/system"
|
|
|
|
fi
|
2013-07-28 15:58:26 +00:00
|
|
|
python setup.py configure --verbose --no-install-init \
|
2009-11-30 22:30:06 +00:00
|
|
|
--resume=/usr/share/wicd/scripts \
|
2013-07-28 15:58:26 +00:00
|
|
|
--suspend=/usr/share/wicd/scripts \
|
2014-09-15 15:09:05 +00:00
|
|
|
--python=/usr/bin/python2 --lib=/usr/lib \
|
2014-12-22 08:50:04 +00:00
|
|
|
--sbin=/usr/sbin --distro=arch \
|
|
|
|
--no-install-gnome-shell-extensions ${_args}
|
2013-07-28 15:58:26 +00:00
|
|
|
}
|
|
|
|
do_install() {
|
2011-07-10 12:43:41 +00:00
|
|
|
python setup.py install --root=${DESTDIR}
|
2009-11-30 22:30:06 +00:00
|
|
|
|
2011-07-10 12:43:41 +00:00
|
|
|
vinstall ${FILESDIR}/wicd.desktop 644 usr/share/applications
|
|
|
|
vmkdir usr/lib/wicd
|
|
|
|
vcopy "build/lib/wicd/*.py" usr/lib/wicd
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/wicd/*.py
|
2014-10-13 12:09:25 +00:00
|
|
|
vsv wicd
|
2014-09-15 15:14:43 +00:00
|
|
|
|
|
|
|
rm -rf ${DESTDIR}/lib
|
2012-02-07 03:44:57 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
2013-07-28 15:58:26 +00:00
|
|
|
rm -rf ${DESTDIR}/etc/logrotate.d
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/pm-utils
|
2009-11-30 22:30:06 +00:00
|
|
|
}
|
2013-04-14 15:36:49 +00:00
|
|
|
|
|
|
|
wicd-gtk_package() {
|
|
|
|
noarch=yes
|
2014-10-13 12:09:25 +00:00
|
|
|
depends="wicd>=${version} pygtk python-notify shared-mime-info desktop-file-utils hicolor-icon-theme"
|
2013-07-28 15:58:26 +00:00
|
|
|
short_desc+=" - GTK UI"
|
2013-04-14 15:36:49 +00:00
|
|
|
pycompile_dirs="usr/share/wicd/gtk"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc/xdg
|
|
|
|
vmove usr/bin/wicd-client
|
|
|
|
vmove usr/bin/wicd-gtk
|
|
|
|
vmove usr/share/applications
|
|
|
|
vmove usr/share/pixmaps
|
|
|
|
vmove usr/share/icons
|
2014-12-22 08:50:04 +00:00
|
|
|
vmove usr/share/wicd/icons
|
2013-04-14 15:36:49 +00:00
|
|
|
vmove usr/share/wicd/gtk
|
|
|
|
vmove usr/share/man/man1/wicd-client.1
|
|
|
|
vmove usr/share/man/nl/man1/wicd-client.1
|
|
|
|
}
|
|
|
|
}
|