summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a2c7ea4116368b9b532d1f39fc45161de045af8 (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
46
47
48
49
50
51
52
53
# Maintainer: Alonso Rodriguez <alonso.rodriguez (at) udc.es>

pkgname=tsunami-udp
pkgver=1.8.1
pkgrel=1
pkgdesc="Ultra-Fast UDPDTP"
arch=('any')
url="https://github.com/forcegk/tsunami-udp"
license=('Copyright 2002 Indiana University')
depends=()
optdepends=()
conflicts=('tsunami-udp')
provides=('tsunami-udp')
source=("git+${url}.git#branch=master")
sha256sums=('SKIP')

# In case there is some activity on the repo (which I doubt will happen)
# pkgver() {
#   cd "${srcdir}/${pkgname}/"
#   git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
# }
 
build() {
  cd "${srcdir}/${pkgname}/"

  # Replacing the ./recompile.sh behaviour
  rm -f configure
  rm -f Makefile
  rm -f Makefile.in
  rm -f */Makefile
  rm -f */Makefile.in
  rm -rf */.deps
  rm -rf autom4te.cache

  echo "Running autoreconf..."
  autoreconf -i -f -s
  
  echo "Configuring..."
  ./configure

  echo "Compiling..."
  make clean
  make -j $(getconf _NPROCESSORS_ONLN)
}
 
 
package() {
  cd "${srcdir}/${pkgname}/"
  make DESTDIR="${pkgdir}" install

  # Install the license
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}