summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 381b4e0f102c891b45ff398e18424bd6a3003157 (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
# Maintainer: jxir <aur@jxir.de>

pkgname=tad-git
pkgver=1.3.r10.ge98e8bb
pkgrel=1
pkgdesc="Library and tools to handle data arrays in C++"
arch=('x86_64')
url="https://marlam.de/tad/"
license=('MIT')
depends=('exiv2' 'ffmpeg' 'gdal' 'hdf5' 'libjpeg' 'libmatio' 'libpng' 'libtiff'
         'openexr')
makedepends=('cmake' 'git')
provides=('tad')
conflicts=('tad')
source=('git+https://git.marlam.de/git/tad.git')
sha256sums=('SKIP')

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

prepare() {
  cd "$srcdir/tad"
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
}

build() {
  cd "$srcdir/tad/build"
  make
}

package() {
  cd "$srcdir/tad/build"
  make DESTDIR="$pkgdir" install
  install -Dm644 ../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}