#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=macchanger
pkgver=1.7.0
pkgrel=1gv
source=("https://github.com/alobbs/macchanger/releases/download/$pkgver/macchanger-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=https://github.com/alobbs/macchanger

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"macchanger (view/manipulate the MAC address of network interfaces)"
"GNU MAC Changer is a GNU/Linux utility for viewing/manipulating the"
"MAC address of network interfaces. It includes the following features:"
" * Set specific MAC address of a network interface"
" * Set the MAC randomly"
" * Set a MAC of another vendor"
" * Set another MAC of the same vendor"
" * Set a MAC of the same kind (eg: wireless card)"
" * Display a vendor MAC list (today, 6800 items) to choose from"

)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}