summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56219bf576e68ea1928b03258508d2db9453df41 (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
# Maintainer: leepesjee <lpeschier at xs4all dot nl>
pkgname=neartree
pkgver=3.1.1
pkgrel=2
pkgdesc="A library for finding nearest neighbors among points in spaces of arbitrary dimensions"
arch=('i686' 'x86_64')
url="http://neartree.sourceforge.net/"
license=('LGPL')
depends=('glibc' 'cvector')
source=(http://downloads.sf.net/neartree/NearTree-${pkgver}.tar.gz)
md5sums=('c728f5aa4dabdf34eb8a0e8d75eaaa1d')

prepare() {
  cd $srcdir/NearTree-${pkgver}
  sed -i "s|INSTALL_PREFIX = /usr/local|INSTALL_PREFIX = ${pkgdir}/usr|" ./Makefile
}

build() {
  cd $srcdir/NearTree-${pkgver}
  make
}

package() {
  cd $srcdir/NearTree-${pkgver}
  make install
  # do not install the libtool thing
  rm ${pkgdir}/usr/lib/*.la
}