2010-09-28 05:56:03 +08:00
|
|
|
pkgname=wicd
|
2016-02-02 16:38:01 +08:00
|
|
|
pkgver=1.7.4
|
2016-03-16 04:03:15 +08:00
|
|
|
pkgrel=2
|
2010-09-28 05:56:03 +08:00
|
|
|
pkgdesc="New and alternative wireless/wired network management utility"
|
2013-11-07 04:35:29 +08:00
|
|
|
arch=('x86_64')
|
2010-09-28 05:56:03 +08:00
|
|
|
url="http://wicd.sourceforge.net/"
|
|
|
|
license=('GPL2')
|
2015-10-05 11:57:41 +08:00
|
|
|
depends=('python2' 'python2-dbus' 'dhcpcd' 'wpa_supplicant' 'wireless_tools' 'pm-utils'
|
2014-09-06 03:20:03 +08:00
|
|
|
'inetutils' 'net-tools' 'ethtool' 'shared-mime-info' 'python2-urwid' 'python2-gobject2' 'dbus-glib' 'rfkill')
|
|
|
|
makedepends=('python2-babel' 'python2-setuptools' 'gettext')
|
2015-10-05 11:57:41 +08:00
|
|
|
optdepends=('wicd-client-kde: needed if you want to use kde ui')
|
2010-09-28 05:56:03 +08:00
|
|
|
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
|
2011-08-29 06:17:45 +08:00
|
|
|
wicd.desktop
|
2015-10-05 11:57:41 +08:00
|
|
|
wicd-1.7.3-urwid-1.3.0.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')
|
2016-02-02 16:38:01 +08:00
|
|
|
md5sums=('aaa2e9f5320849e0b5d053099a6f0007'
|
2011-08-29 06:17:45 +08:00
|
|
|
'326df163a5732d38741371baa4fce9e5'
|
2015-10-05 11:57:41 +08:00
|
|
|
'f7e6085e482f37f2b8529326c21cbbbf')
|
2010-09-28 05:56:03 +08:00
|
|
|
|
2013-12-09 18:39:38 +08:00
|
|
|
prepare() {
|
|
|
|
cd $pkgbase-$pkgver
|
2011-08-29 06:17:45 +08:00
|
|
|
|
|
|
|
find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
|
|
|
|
export PYTHON=python2
|
2013-12-09 18:39:38 +08:00
|
|
|
|
|
|
|
sed -i 's|/usr/sbin/|/usr/bin/|' other/wicd.service
|
2014-09-06 03:20:03 +08:00
|
|
|
sed -i 's|pybabel|pybabel2|' setup.py
|
2013-12-09 18:39:38 +08:00
|
|
|
|
2015-10-05 11:57:41 +08:00
|
|
|
patch -Np0 -i "$srcdir/wicd-1.7.3-urwid-1.3.0.patch"
|
2013-12-09 18:39:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2012-06-14 07:27:52 +08:00
|
|
|
|
2011-08-29 06:17:45 +08:00
|
|
|
python2 setup.py configure --no-install-init \
|
2015-10-05 11:57:41 +08:00
|
|
|
--no-install-gtk \
|
|
|
|
--no-install-gnome-shell-extensions \
|
|
|
|
--distro=arch \
|
2012-06-14 07:27:52 +08:00
|
|
|
--resume=/usr/share/wicd/scripts/ \
|
2011-08-29 06:17:45 +08:00
|
|
|
--suspend=/usr/share/wicd/scripts/ \
|
|
|
|
--verbose \
|
2012-06-14 07:27:52 +08:00
|
|
|
--python=/usr/bin/python2 \
|
|
|
|
--lib=/usr/lib \
|
2013-12-09 18:39:38 +08:00
|
|
|
--sbin=/usr/bin \
|
|
|
|
--systemd=/usr/lib/systemd/system
|
2015-10-05 11:57:41 +08:00
|
|
|
|
|
|
|
python2 setup.py build
|
|
|
|
python2 setup.py compile_translations
|
|
|
|
|
|
|
|
#HACK for https://bugs.launchpad.net/wicd/+bug/928589
|
2012-06-14 07:27:52 +08:00
|
|
|
mkdir -p translations/ast/LC_MESSAGES
|
2012-04-13 23:56:55 +08:00
|
|
|
msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
|
2012-06-14 07:27:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2015-10-05 11:57:41 +08:00
|
|
|
python2 setup.py install --skip-build --optimize=1 --root=$pkgdir
|
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
|
|
|
|
|
2015-10-05 11:57:41 +08:00
|
|
|
rm -rf $pkgdir/usr/share/autostart
|
2013-07-15 05:39:23 +08:00
|
|
|
}
|