summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad06727339a9bde29eb1fea71757cb2def9ef8d6 (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
54
55
56
57
58
59
60
61
62
63
64
65
# Maintainer: Samuel Mesa <samuelmesa at linuxmail.org>

pkgname=taudem
_pkgname=TauDEM
pkgver=5.3.8  
pkgrel=1
pkgdesc="TauDEM (Terrain Analysis Using Digital Elevation Models) is a suite of Digital Elevation Model (DEM) tools for the extraction and analysis of hydrologic information from topography as represented by a DEM."
arch=(i686 x86_64)
url="http://hydrology.uwrl.usu.edu/taudem"
license=('GPL')
depends=('gdal' 'openmpi')
makedepends=('cmake')
optdepends=()
provides=()
conflicts=()
replaces=()
options=('!makeflags')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dtarb/${_pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('593ffc11acd3d92d656863424f981a19')

build() {   
  cd ${srcdir}/${_pkgname}-${pkgver}/src
  
  export LC_ALL=C  
  make
}

package() {
  cd ${srcdir}/${_pkgname}-${pkgver}/

  install -d ${pkgdir}/usr/local/bin

  install -Dm755 aread8 "${pkgdir}/usr/local/bin/aread8"
  install -Dm755 areadinf "${pkgdir}/usr/local/bin/areadinf"
  install -Dm755 connectdown "${pkgdir}/usr/local/bin/connectdown"  
  install -Dm755 d8flowdir "${pkgdir}/usr/local/bin/d8flowdir"
  install -Dm755 d8flowpathextremeup "${pkgdir}/usr/local/bin/d8flowpathextremeup"
  install -Dm755 d8hdisttostrm "${pkgdir}/usr/local/bin/d8hdisttostrm"
  install -Dm755 dinfavalanche "${pkgdir}/usr/local/bin/dinfavalanche"
  install -Dm755 dinfconclimaccum "${pkgdir}/usr/local/bin/dinfconclimaccum"
  install -Dm755 dinfdecayaccum "${pkgdir}/usr/local/bin/dinfdecayaccum"
  install -Dm755 dinfdistdown "${pkgdir}/usr/local/bin/dinfdistdown"
  install -Dm755 dinfdistup "${pkgdir}/usr/local/bin/dinfdistup"
  install -Dm755 dinfflowdir "${pkgdir}/usr/local/bin/dinfflowdir"
  install -Dm755 dinfrevaccum "${pkgdir}/usr/local/bin/dinfrevaccum"
  install -Dm755 dinftranslimaccum "${pkgdir}/usr/local/bin/dinftranslimaccum"
  install -Dm755 dinfupdependence "${pkgdir}/usr/local/bin/dinfupdependence"
  install -Dm755 dropanalysis "${pkgdir}/usr/local/bin/dropanalysis"
  install -Dm755 gagewatershed "${pkgdir}/usr/local/bin/gagewatershed"
  install -Dm755 gridnet "${pkgdir}/usr/local/bin/gridnet"
  install -Dm755 lengtharea "${pkgdir}/usr/local/bin/lengtharea"
  install -Dm755 moveoutletstostrm "${pkgdir}/usr/local/bin/moveoutletstostrm"
  install -Dm755 peukerdouglas "${pkgdir}/usr/local/bin/peukerdouglas"
  install -Dm755 pitremove "${pkgdir}/usr/local/bin/pitremove"
  install -Dm755 slopearea "${pkgdir}/usr/local/bin/slopearea"
  install -Dm755 slopearearatio "${pkgdir}/usr/local/bin/slopearearatio"
  install -Dm755 slopeavedown "${pkgdir}/usr/local/bin/slopeavedown"
  install -Dm755 streamnet "${pkgdir}/usr/local/bin/streamnet"
  install -Dm755 threshold "${pkgdir}/usr/local/bin/threshold"
  install -Dm755 twi "${pkgdir}/usr/local/bin/threshold"
}