2010-09-28 05:56:03 +08:00
|
|
|
#
|
2012-03-19 09:35:21 +08:00
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
2010-09-28 05:56:03 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
pkgname=wicd
|
2012-04-23 08:36:49 +08:00
|
|
|
pkgver=1.7.2.3
|
2012-03-19 09:35:21 +08:00
|
|
|
pkgrel=1
|
2010-09-28 05:56:03 +08:00
|
|
|
pkgdesc="New and alternative wireless/wired network management utility"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://wicd.sourceforge.net/"
|
|
|
|
license=('GPL2')
|
2012-04-13 23:49:11 +08:00
|
|
|
depends=('python2' 'dbus-python' 'dhcpcd' 'wpa_supplicant' 'wireless_tools' 'python-babel'
|
|
|
|
'net-tools' 'ethtool' 'shared-mime-info' 'python-urwid' 'pygobject' 'gettext')
|
2011-08-29 06:17:45 +08:00
|
|
|
optdepends=('python-wpactrl: needed if you want to use the new experimental ioctrl backend'
|
2010-09-28 05:56:03 +08:00
|
|
|
'python-iwscan: needed if you want to use the new experimental ioctrl backend'
|
|
|
|
'wicd-client-kde: needed if you want to use kde ui')
|
|
|
|
conflicts=('wicd-svn')
|
|
|
|
install=wicd.install
|
2012-04-13 19:48:25 +08:00
|
|
|
source=(https://launchpad.net/wicd/1.7/$pkgver/+download/$pkgname-$pkgver.tar.gz
|
2010-09-28 05:56:03 +08:00
|
|
|
wicd-daemon
|
2011-08-29 06:17:45 +08:00
|
|
|
wicd.desktop
|
|
|
|
wicd-scripts-execution.patch
|
|
|
|
deepcopy+python27-fixes.patch
|
|
|
|
net-tools.patch)
|
2012-03-06 22:42:55 +08:00
|
|
|
categories=('network')
|
2010-09-28 05:56:03 +08:00
|
|
|
options=('emptydirs')
|
|
|
|
backup=('etc/wicd/encryption/templates/active')
|
2012-04-23 08:36:49 +08:00
|
|
|
md5sums=('9c7b2eaa9048aaf5cd0cbc17fb84a68b'
|
2010-09-28 05:56:03 +08:00
|
|
|
'f40e5f59998d0829707a7c9976afa8f8'
|
2011-08-29 06:17:45 +08:00
|
|
|
'326df163a5732d38741371baa4fce9e5'
|
|
|
|
'f4c377a25aa077cb76955124adfcc03f'
|
|
|
|
'4f94d05b28aa2ae1cc37b29ef069fe51'
|
|
|
|
'f18c4adf741bf3b1a55b4a6bc772f485')
|
2010-09-28 05:56:03 +08:00
|
|
|
|
|
|
|
build() {
|
2011-08-29 06:17:45 +08:00
|
|
|
cd $srcdir/$pkgbase-$pkgver
|
2012-03-19 09:35:21 +08:00
|
|
|
# patch -p0 <$srcdir/wicd-scripts-execution.patch
|
|
|
|
# patch -p1 -i $srcdir/deepcopy+python27-fixes.patch
|
|
|
|
# patch -p0 -i $srcdir/net-tools.patch
|
2011-08-29 06:17:45 +08:00
|
|
|
|
|
|
|
find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
|
|
|
|
export PYTHON=python2
|
|
|
|
python2 setup.py configure --no-install-init \
|
|
|
|
--resume=/usr/share/wicd/scripts/ \
|
|
|
|
--suspend=/usr/share/wicd/scripts/ \
|
|
|
|
--verbose \
|
|
|
|
--python=/usr/bin/python2
|
2012-04-13 23:56:55 +08:00
|
|
|
msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
|
2011-08-29 06:17:45 +08:00
|
|
|
python2 setup.py install --optimize=1 --root=$pkgdir
|
2012-04-13 23:49:11 +08:00
|
|
|
|
2010-09-28 05:56:03 +08:00
|
|
|
# Add custom rc.d script
|
|
|
|
install -Dm755 $srcdir/wicd-daemon $pkgdir/etc/rc.d/wicd
|
2011-08-29 06:17:45 +08:00
|
|
|
#install -Dm644 $srcdir/wicd.desktop $pkgdir/usr/share/applications/wicd.desktop
|
2012-04-13 23:49:11 +08:00
|
|
|
|
2010-09-28 05:56:03 +08:00
|
|
|
cd build/lib/wicd
|
|
|
|
for i in *.py; do
|
2011-08-29 06:17:45 +08:00
|
|
|
install -Dm 755 $i $pkgdir/usr/lib/wicd/$i
|
2010-09-28 05:56:03 +08:00
|
|
|
done
|
|
|
|
|
2011-08-29 06:17:45 +08:00
|
|
|
rm -rf $pkgdir/usr/share/autostart
|
2010-09-28 05:56:03 +08:00
|
|
|
|
2011-08-29 06:17:45 +08:00
|
|
|
#deleting the GTK stuff
|
|
|
|
rm -rf $pkgdir/etc/xdg
|
|
|
|
rm -f $pkgdir/usr/bin/{wicd-client,wicd-gtk}
|
|
|
|
rm -rf $pkgdir/usr/share/{applications,icons,pixmaps}
|
|
|
|
rm -rf $pkgdir/usr/share/wicd/gtk
|
|
|
|
}
|