summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9a17de5c0906b22f05b31552b529ae7a1baedd1 (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
# Maintainer: Heavysink <winstonwu91 at gmail>
pkgname=libnn-git
pkgver=1.85.0.r29.ga132637
pkgrel=1
epoch=1
pkgdesc="a C code for Natural Neighbours interpolation of 2D scattered data"
arch=(i686 x86_64)
url="https://github.com/sakov/nn-c"
license=('GPL3')
depends=('glibc')
makedepends=('git')
source=($pkgname::"git://github.com/sakov/nn-c.git")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$pkgname/nn"
  export CFLAGS+=" -fPIC"
  ./configure \
    --prefix=$pkgdir/usr
  make
}

package()
{
  cd "$srcdir/$pkgname/nn"
  make install
}