summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7fa0b66bced158d37a51a7491bbd130268a961d (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
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gnu-netcat-svn
pkgver=r370
pkgrel=2
pkgdesc="A networking utility which reads and writes data across network connections"
arch=('i686' 'x86_64')
url="https://netcat.sourceforge.net/"
license=('GPL')
depends=('glibc')
makedepends=('subversion' 'texinfo')
provides=("gnu-netcat=$pkgver" 'netcat')
conflicts=('gnu-netcat')
replaces=('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
}