summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6664aa9ef99e93002c6370ff02c18375339f2ba5 (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
# Maintainer: Herbert Knapp <herbert.knapp@edu.uni-graz.at>
pkgname=gsocket-git
pkgver=1.4.22.r13.gfbe5983
pkgrel=1
pkgdesc='Allows two users behind NAT/Firewall to establish a TCP connection with each other.'
url='https://github.com/hackerschoice/gsocket'
arch=('any')
license=('custom')
makedepends=('git')
source=("$pkgname::git+https://github.com/hackerschoice/gsocket#branch=master")
md5sums=('SKIP')
conflicts=('gsocket')
provides=('gsocket')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$srcdir/$pkgname/"
  ./bootstrap
  ./configure --prefix=$pkgdir/usr
  make install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/gsocket/LICENSE"
}