core/wicd/PKGBUILD

51 lines
1.9 KiB
Bash
Raw Normal View History

2010-09-28 05:56:03 +08:00
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=wicd
pkgver=1.7.0
2011-04-26 04:21:10 +08:00
pkgrel=4
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')
2010-12-19 07:11:23 +08:00
depends=('python2' 'dbus-python' 'dhcpcd' 'wpa_supplicant' 'wireless_tools' 'ethtool' 'shared-mime-info' 'python-urwid' 'consolekit' 'pygobject')
2010-09-28 05:56:03 +08:00
optdepends=('hicolor-icon-theme'
'gksu: needed to access some preferences in gtk interface'
'notification-daemon: needed if you want notifications'
'python-notify: needed if you want notifications'
'python-wpactrl: needed if you want to use the new experimental ioctrl backend'
'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
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
wicd-daemon
wicd-scripts-execution.patch)
options=('emptydirs')
backup=('etc/wicd/encryption/templates/active')
md5sums=('003d2e67240989db55934553437ba32a'
'f40e5f59998d0829707a7c9976afa8f8'
'f4c377a25aa077cb76955124adfcc03f')
build() {
cd $srcdir/$pkgname-$pkgver
patch -p0 <$srcdir/wicd-scripts-execution.patch || return 1
2010-12-19 07:11:23 +08:00
python2 setup.py configure --no-install-init --resume=/usr/share/wicd/scripts/ \
2010-09-28 05:56:03 +08:00
--suspend=/usr/share/wicd/scripts/ --verbose --no-install-gtk
2010-12-19 07:11:23 +08:00
python2 setup.py install --root=$pkgdir
2010-09-28 05:56:03 +08:00
# Add custom rc.d script
install -Dm755 $srcdir/wicd-daemon $pkgdir/etc/rc.d/wicd
cd build/lib/wicd
for i in *.py; do
install -Dm 755 $i $startdir/pkg/usr/lib/wicd/$i
done
rm -rf ${startdir}/pkg/usr/share/autostart
}