# $Id: PKGBUILD 75193 2010-04-01 02:03:01Z pierre $ # Maintainer: Thomas Baechler pkgname=wpa_supplicant pkgver=0.6.10 pkgrel=2 pkgdesc="A utility providing key negotiation for WPA wireless networks" arch=('i686' 'x86_64') depends=('openssl' 'dbus-core>=1.2.4' 'readline>=6.0' 'libnl') optdepends=('wpa_supplicant_gui: wpa_gui program') license=('GPL') groups=('base') backup=('etc/wpa_supplicant.conf') url="http://hostap.epitest.fi/wpa_supplicant" source=(http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz config) md5sums=('8985b1030d753e5f74f8acfc34e591bb' '6577abc7060ed2d45dba14bf8934e850') build() { cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}" cp ${srcdir}/config ./.config sed -i 's@/usr/local@$(PREFIX)@g' Makefile make || return 1 } package() { cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}" make PREFIX=/usr DESTDIR="${pkgdir}" install || return 1 install -m755 -d "${pkgdir}/etc" install -m644 wpa_supplicant.conf "${pkgdir}/etc/wpa_supplicant.conf" || return 1 install -d -m755 ${pkgdir}/usr/share/man/man{5,8} || return 1 install -m644 doc/docbook/wpa_supplicant.conf.5 "${pkgdir}/usr/share/man/man5/" || return 1 install -m644 doc/docbook/{wpa_background,wpa_cli,wpa_passphrase,wpa_supplicant}.8 "${pkgdir}/usr/share/man/man8/" || return 1 install -m755 -d "${pkgdir}/usr/share/dbus-1/system-services" install -m644 dbus-wpa_supplicant.service "${pkgdir}/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1 sed -e 's/sbin/usr\/sbin/' -i "${pkgdir}/usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service" || return 1 install -m755 -d "${pkgdir}/etc/dbus-1/system.d" install -m644 dbus-wpa_supplicant.conf "${pkgdir}/etc/dbus-1/system.d/fi.epitest.hostap.WPASupplicant.conf" || return 1 }