# Contributor: Tuxce # Based on wicd PKGBUILD by Rashif "Don Ray" Rahman pkgname=wicd pkgver=1.5.1 pkgrel=1 pkgdesc="New and alternative wireless/wired network management utility" arch=('i686' 'x86_64') url="http://wicd.sourceforge.net/" license=('GPL') depends=('dbus-python' 'pygtk' 'dhclient' 'ethtool' 'wpa_supplicant') install=wicd.install source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz wicd-daemon wicd.install) build() { cd $startdir/src/$pkgname-$pkgver # Configure & install python setup.py configure || return 1 #python setup.py get_translations python setup.py install --root ${startdir}/pkg/ || return 1 # Delete *.pyc find ${startdir}/pkg/usr/lib/wicd -iname "*.pyc" -exec rm {} \; # Change files permissions chmod 644 ${startdir}/pkg/etc/dbus-1/system.d/wicd.conf find ${startdir}/pkg/{usr/share,var,etc/dbus-1,/etc/wicd,/etc/xdg} -type d -exec chmod 755 {} \; find ${startdir}/pkg/{usr/share,var,etc/dbus-1,/etc/wicd,/etc/xdg} -type f -exec chmod 644 {} \; chown -R root:root $startdir/pkg # Add custom rc.d script cd ${startdir} install -D -m755 wicd-daemon pkg/etc/rc.d/wicd # Add missing directories and delete useless one mkdir ${startdir}/pkg/usr/lib/wicd/data/ rm -r ${startdir}/pkg/usr/share/autostart }