void-packages/srcpkgs/wicd/template

70 lines
2 KiB
Text
Raw Normal View History

# Template file for 'wicd'
pkgname=wicd
2013-07-28 15:58:26 +00:00
version=1.7.2.4
2014-10-13 12:09:25 +00:00
revision=11
noarch=yes
2014-09-15 15:11:21 +00:00
hostmakedepends="python python-setuptools python-Babel"
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
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"
short_desc="Open source wired and wireless network manager"
maintainer="Juan RP <xtraeme@gmail.com>"
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"
checksum=dcfdfb5dbbb49dbb9b205fddf064d6b1a4e88f66f1cf40d12fb7fe0e0c7cdc97
build_options="systemd"
2014-10-13 12:09:25 +00:00
replaces="runit-void<20141013_2"
2013-07-28 15:58:26 +00:00
do_build() {
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 \
--resume=/usr/share/wicd/scripts \
2013-07-28 15:58:26 +00:00
--suspend=/usr/share/wicd/scripts \
--python=/usr/bin/python2 --lib=/usr/lib \
--sbin=/usr/sbin ${_args}
2013-07-28 15:58:26 +00:00
#HACK for https://bugs.launchpad.net/wicd/+bug/928589
mkdir -p translations/ast/LC_MESSAGES
msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
}
do_install() {
python setup.py install --root=${DESTDIR}
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
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
}
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"
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
vmove usr/share/wicd/gtk
vmove usr/share/man/man1/wicd-client.1
vmove usr/share/man/nl/man1/wicd-client.1
}
}