python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / wicd / template
blobbc7d8f138c23baddd32bba881b37b77f101d124f
1 # Template file for 'wicd'
2 pkgname=wicd
3 version=1.7.4
4 revision=3
5 noarch=yes
6 hostmakedepends="python python-setuptools python-Babel"
7 depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
8  util-linux wireless_tools wpa_supplicant"
9 pycompile_module="wicd"
10 pycompile_dirs="usr/lib/wicd usr/share/wicd"
11 conf_files="
12         /etc/dbus-1/system.d/wicd.conf
13         /etc/wicd/encryption/templates/active"
14 short_desc="Open source wired and wireless network manager"
15 maintainer="Juan RP <xtraeme@voidlinux.eu>"
16 homepage="http://wicd.sourceforge.net"
17 license="GPL-2"
18 distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
19 checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
21 do_build() {
22         python setup.py configure --verbose --no-install-init \
23                 --resume=/usr/share/wicd/scripts \
24                 --suspend=/usr/share/wicd/scripts \
25                 --python=/usr/bin/python2 --lib=/usr/lib \
26                 --sbin=/usr/bin --distro=arch \
27                 --no-install-gnome-shell-extensions
29 do_install() {
30         python setup.py install --root=${DESTDIR}
32         vinstall ${FILESDIR}/wicd.desktop 644 usr/share/applications
33         vmkdir usr/lib/wicd
34         vcopy "build/lib/wicd/*.py" usr/lib/wicd
35         chmod 755 ${DESTDIR}/usr/lib/wicd/*.py
36         vsv wicd
38         rm -rf ${DESTDIR}/lib
39         rm -rf ${DESTDIR}/usr/share/doc
40         rm -rf ${DESTDIR}/etc/logrotate.d
41         rm -rf ${DESTDIR}/usr/lib/pm-utils
44 wicd-gtk_package() {
45         noarch=yes
46         depends="wicd>=${version} pygtk python-notify shared-mime-info desktop-file-utils hicolor-icon-theme"
47         short_desc+=" - GTK UI"
48         pycompile_dirs="usr/share/wicd/gtk"
49         pkg_install() {
50                 vmove etc/xdg
51                 vmove usr/bin/wicd-client
52                 vmove usr/bin/wicd-gtk
53                 vmove usr/share/applications
54                 vmove usr/share/pixmaps
55                 vmove usr/share/icons
56                 vmove usr/share/wicd/icons
57                 vmove usr/share/wicd/gtk
58                 vmove usr/share/man/man1/wicd-client.1
59                 vmove usr/share/man/nl/man1/wicd-client.1
60         }