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

# source: james

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

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

SLACKREQ=''

SLACKDESC="${PKGNAME}: ${PKGNAME} ${PKGVER} (Redirect connections through proxy servers)
${PKGNAME}: 
${PKGNAME}: ProxyChains is a UNIX program, that hooks network-related libc functions
${PKGNAME}: in DYNAMICALLY LINKED programs via a preloaded DLL (dlsym(), LD_PRELOAD)
${PKGNAME}: and redirects the connections through SOCKS4a/5 or HTTP proxies.
${PKGNAME}: It supports TCP only (no UDP/ICMP etc).
${PKGNAME}: 
${PKGNAME}: https://github.com/rofl0r/proxychains-ng
${PKGNAME}: 
${PKGNAME}: 
${PKGNAME}: 
"

### 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
}
