summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c02360c3ed39d9639c9549d05224d4618779bfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gnu-netcat-svn
pkgver=r370
pkgrel=3
pkgdesc="A networking utility which reads and writes data across network connections"
arch=('i686' 'x86_64')
url="https://netcat.sourceforge.net/"
license=('GPL-2.0-or-later')
depends=('glibc')
makedepends=('subversion' 'texinfo')
provides=("gnu-netcat=$pkgver" 'netcat')
conflicts=('gnu-netcat')
source=("svn+https://svn.code.sf.net/p/netcat/code/trunk")
sha256sums=('SKIP')


pkgver() {
  cd "trunk"

  _rev="$(svnversion | sed 's/[^0-9]+//')"
  printf "r%s" "$_rev"
}

build() {
  cd "trunk"

  autoreconf -fi
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "trunk"

  make check
}

package() {
  cd "trunk"

  make DESTDIR="$pkgdir" install
}