### this file is sourced not run
PKGNAME=create_ap
PKGVER=0.4.6
PKGBUILD=1
PKGARCH=noarch

# source: JakeSFR

hash=d67a5a59df3c329058507d0cb3f6382d9a2f5f9a
hash7=${hash#???????}; hash7=${hash%$hash7}
PKGVER=${PKGVER}_$hash7

TARBALL=${PKGNAME}-${PKGVER}.tar.gz
MD5SUM=9e13d2448ccf96e6b6321b265f94f84d
SRC_URL=https://github.com/oblique/${PKGNAME}/archive/${hash}.tar.gz
BUNDLE=

SLACKREQ='hostapd'

SLACKDESC="${PKGNAME}: ${PKGNAME} ${PKGVER} (Script to create WiFi Access Point)
${PKGNAME}: 
${PKGNAME}: This script creates a NATed or Bridged WiFi Access Point. 
${PKGNAME}: - Create an AP (Access Point) at any channel
${PKGNAME}: - Choose one of the following encryptions: WPA, WPA2, WPA/WPA2, Open (no encryption)
${PKGNAME}: - Hide your SSID
${PKGNAME}: - Disable communication between clients (client isolation)
${PKGNAME}: - IEEE 802.11n & 802.11ac support
${PKGNAME}: - Internet sharing methods: NATed or Bridged or None (no Internet sharing)
${PKGNAME}: 
${PKGNAME}: https://github.com/oblique/create_ap
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/${PKGNAME}* &&
	make $MAKEFLAGS &&
	make $MAKEFLAGS install &&
	pkg_build_slackdesc	&&
	true
}
