Created
April 20, 2016 11:52
-
-
Save anonymous/5f1c61c0ed1fe857269e1fd46f01dd4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Thomas Bächler <thomas@archlinux.org> | |
pkgname=wpa_supplicant | |
pkgver=2.2 | |
pkgrel=2 | |
pkgdesc="A utility providing key negotiation for WPA wireless networks" | |
url="http://hostap.epitest.fi/wpa_supplicant" | |
arch=('i686' 'x86_64') | |
depends=('openssl' 'libdbus' 'readline' 'libnl') | |
optdepends=('wpa_supplicant_gui: wpa_gui program') | |
license=('GPL') | |
backup=('etc/wpa_supplicant/wpa_supplicant.conf') | |
source=("http://w1.fi/releases/${pkgname}-${pkgver}.tar.gz" | |
config) | |
sha256sums=('e0d8b8fd68a659636eaba246bb2caacbf53d22d53b2b6b90eb4b4fef0993c8ed' | |
'15be07f0d8003a2239dfba008f09602f1203bbf143004d8979ff4d863153c817') | |
prepare() { | |
cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}/" | |
cp "${srcdir}/config" ./.config | |
} | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}" | |
# The Makefile does not pick up our CPPFLAGS | |
export CFLAGS="$CPPFLAGS $CFLAGS" | |
make LIBDIR=/usr/lib BINDIR=/usr/bin | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}" | |
make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="${pkgdir}" install | |
install -d -m755 "${pkgdir}/etc/wpa_supplicant" | |
install -m644 wpa_supplicant.conf "${pkgdir}/etc/wpa_supplicant/wpa_supplicant.conf" | |
install -d -m755 "${pkgdir}/usr/share/man/man"{5,8} | |
install -m644 doc/docbook/*.5 "${pkgdir}/usr/share/man/man5/" | |
install -m644 doc/docbook/*.8 "${pkgdir}/usr/share/man/man8/" | |
rm -f "${pkgdir}/usr/share/man/man8/wpa_"{priv,gui}.8 | |
install -d -m755 "${pkgdir}/usr/share/dbus-1/system-services" | |
install -m644 dbus/{fi.epitest.hostap.WPASupplicant.service,fi.w1.wpa_supplicant1.service} "${pkgdir}/usr/share/dbus-1/system-services/" | |
install -d -m755 "${pkgdir}/etc/dbus-1/system.d" | |
install -m644 dbus/dbus-wpa_supplicant.conf "${pkgdir}/etc/dbus-1/system.d/wpa_supplicant.conf" | |
install -d -m755 "${pkgdir}/usr/lib/systemd/system" | |
install -m644 systemd/*.service "${pkgdir}/usr/lib/systemd/system/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment