blob: 23dbdde084f68e4614d634a51b9e17b5442ff824 (
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
|
# Maintainer: Adrian Holfter < aholfter PLUS aur AT googlemail DOT com >
pkgname=laslib-git
pkgver=r653.20e9673
pkgrel=2
pkgdesc="LASlib is a C++ programming API for reading / writing LIDAR data stored in standard LAS format."
arch=('i686' 'x86_64')
url="http://lastools.org/"
license=('LGPL')
provides=('laslib')
conflicts=('laslib')
source=("git+https://github.com/LAStools/LAStools.git")
md5sums=('SKIP')
pkgver() {
cd "LAStools"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/LAStools"
make
}
package() {
# LASzip include headers are needed, too
cd "$srcdir/LAStools/LASzip/src"
find . -iname "*.hpp" -exec install -Dm644 {} "$pkgdir/usr/include/laslib/{}" \;
# install LASlib include headers
cd "$srcdir/LAStools/LASlib/inc"
find . -exec install -Dm644 {} "$pkgdir/usr/include/laslib/{}" \;
# install library
cd "$srcdir/LAStools/LASlib/"
install -Dm644 "$srcdir/LAStools/LASlib/lib/liblas.a" "$pkgdir/usr/lib/liblaslib.a"
}
|