[arch-commits] Commit in nbtscan/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Sat Jun 12 00:34:39 UTC 2021


    Date: Saturday, June 12, 2021 @ 00:34:39
  Author: anthraxx
Revision: 963019

upgpkg: nbtscan 1.6-1

Modified:
  nbtscan/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++++++------------------------
 1 file changed, 22 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-12 00:32:56 UTC (rev 963018)
+++ PKGBUILD	2021-06-12 00:34:39 UTC (rev 963019)
@@ -1,35 +1,33 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Sergio Rubio <rubiojr at biondofu.net>
 
 pkgname=nbtscan
-pkgver=1.5.1
-pkgrel=8
-pkgdesc="NBTscan is a program for scanning IP networks for NetBIOS name information."
+pkgver=1.6
+pkgrel=1
+pkgdesc='Scan networks searching for NetBIOS information'
+url='https://github.com/resurrecting-open-source-projects/nbtscan'
 arch=('x86_64')
-license=('GPL')
+license=('GPL2')
 depends=(glibc)
-url="http://www.inetcat.net/software/nbtscan.html"
-#source=(http://www.sourcefiles.org/Networking/Tools/Miscellanenous/nbtscan-$pkgver.tar.gz
-source=(https://sources.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.gz
-	nbtscan.1.gz)
-sha256sums=('f9f95d5555356c8d467a576e69d9d348bf2a821ded9a85f895b5e6d21e2aa7eb'
-            '286b73168554e0e481d8a1b4b9a728bedcde0f5d32f2e022f6a142fd7a8bfdad')
+source=(https://github.com/resurrecting-open-source-projects/nbtscan/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('9fc1bf325c37b1c9a3e4abec3bf2e5116f20c552a6ae5dc21d581c926ae02262')
+b2sums=('3e38e946aa875be2bca8ad0155a5bf4c612cecda3761623d75657b2ab54aa7a7526d284a78db764518748e092c2719a4c02bcdce32095c87537c9979571c10f7')
 
+prepare() {
+	cd ${pkgname}-${pkgver}
+	autoreconf -fiv
+}
+
 build() {
-    cd "$srcdir"/$pkgname-${pkgver}a
-    ./configure --prefix=/usr
-    make
+	cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr
+  make
 }
 
 package() {
-    cd "$srcdir"/$pkgname-${pkgver}a
+	cd ${pkgname}-${pkgver}
+	make DESTDIR="$pkgdir" install
+  install -Dm 644 README.md ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
 
-    # Copy the binary
-    mkdir -p "$pkgdir"/usr/bin
-    cp nbtscan "$pkgdir"/usr/bin
-
-    cd "$srcdir"
-    # Include the nbtscan debian man page
-    mkdir -p "$pkgdir"/usr/share/man/man1
-    cp nbtscan.1.gz "$pkgdir"/usr/share/man/man1
-}
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list