#Packager: George Vlahavas pkgname=wicd pkgver=1.7.2.4 pkgrel=1gv_salix13.1 source=("https://launchpad.net/wicd/1.7/1.7.2.4/+download/wicd-1.7.2.4.tar.gz" "manager-settings.conf" "770_769.diff") docs=("readme*" "install" "changes" "authors" "news" "todo" "license" ) url=https://launchpad.net/wicd options=('noautodotnew') dotnew=('etc/wicd/manager-settings.conf') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wicd (network manager for linux)" "wicd is a wired and wireless network manager for Linux." "Some features include:" "- Ability to connect to wired and wireless networks" "- Profiles for each wireless network and wired network" "- Many encryption schemes, some of which include WEP/WPA/WPA2" "- Compatible with wireless-tools" "" "Homepage: http://wicd.net" ) build() { cd $startdir/src/$pkgname-$pkgver patch -p0 < $startdir/src/770_769.diff || exit 1 python setup.py configure \ --lib=/usr/lib${LIBDIRSUFFIX}/wicd \ --kdedir=/usr/share/autostart \ --backends=/usr/lib${LIBDIRSUFFIX}/wicd/backends \ --wicdgroup=netdev \ || exit 1 # Bypass the need for pybabel for pofile in $(find po/ -type f -name "*.po") ; do mkdir -p translations/$(basename ${pofile} .po)/LC_MESSAGES msgfmt -o translations/$(basename ${pofile} .po)/LC_MESSAGES/wicd.mo ${pofile} done python setup.py install --root=$startdir/pkg || exit 1 # use dhcpcd as the default dhcp client mkdir -p $startdir/pkg/etc/wicd cp $startdir/src/manager-settings.conf $startdir/pkg/etc/wicd/ chmod 600 $startdir/pkg/etc/wicd/manager-settings.conf }