### this file is sourced not run
PKGNAME=proxychains-ng
PKGVER=4.14.2020.01
PKGBUILD=1
PKGARCH=noarch

# source: JakeSFR

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

TARBALL=${PKGNAME}-${PKGVER}.tar.gz
MD5SUM=91eb42e51d6770326d115b4d77bc20cd
SRC_URL=https://github.com/rofl0r/${PKGNAME}/archive/${hash}.tar.gz
BUNDLE=

SLACKREQ=''

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}* &&
	pkg_build_autoconf &&
	pkg_build_slackdesc	&&

	# install extra files
	install -m644 src/proxychains.conf /etc/proxychains.conf.sample &&
	install -dm755 /usr/share/doc/proxychains       &&
	install -m644 README /usr/share/doc/proxychains &&
	true
}
