# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Sergio Rubio <rubiojr@biondofu.net>

pkgname=nbtscan
pkgver=1.7.1
pkgrel=1
pkgdesc='Scan networks searching for NetBIOS information'
url='https://github.com/resurrecting-open-source-projects/nbtscan'
arch=('x86_64')
license=('GPL2')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('09fafb52217f73c922cb4ae8610aa6745ef5b1a6992b8abe880e901b07658063a6b109e7a7de10601024178de6bcaa1526e11ea16b1906287d598fca9dd203c1')

prepare() {
	cd ${pkgname}-${pkgver}
	autoreconf -fiv
}

build() {
	cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
	cd ${pkgname}-${pkgver}
	make DESTDIR="$pkgdir" install
  install -Dm 644 README.md ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim: ts=2 sw=2 et:
