summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5974e20a96f86b3066d5578f4483786804f25b07 (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
# Generated by pakanton
# Maintainer: Branislav HolĂ˝ <branoholy@gmail.com>
pkgbase='lsl-registration'
pkgname=('lsl-registration' 'lsl-registration-lib')
pkgver='0.1.4'
pkgrel='1'
pkgdesc='A library for working with LIDAR data'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/branoholy/lsl'
license=('GPL3')
makedepends=('cmake>=2.8' "lsl-core>=$pkgver" 'boost>=1.54')
source=("https://github.com/branoholy/lsl/archive/v$pkgver/lsl-$pkgver.tar.gz"
        "https://github.com/branoholy/lsl/releases/download/v$pkgver/lsl-$pkgver.tar.gz.sig")
md5sums=('2c95dcb03aec9f34035103a79cf093ec'
         'cf81e1eb8a63f1891709b7563cd1dd0a')
sha1sums=('0cc769db2b73963ca7ad3868293b619dcb6dff2a'
          'bb617b941b67e96a855f85953937303d220ead1f')
sha256sums=('1e733387260a4f361143dcadc4daa5fbf37568814202a1ca43f8c7ddd88f5053'
            '3e58069b0c100d276d706151d97cc8f07ef59692afa4628d6d27d0d613e8d207')
sha512sums=('7b9d2396ce16c5089844383564b541de08c696a71d6800e3e5a0b75fcb1b0376d12b121f497f31284e965861dea862b25e8948af95d83dc82bf296f6da54ba76'
            'c511a63a7f785c86618d95f3739e8894b44b745bbe0254b6e89157aad09f4b2479046a6401152300193e66e773580ab0d67930ea9e014985fcb614ada9a29cf8')
validpgpkeys=('D25809BF3563AA56A12B0F4D545EDD46FBAC61E6')

build() {
	cd lsl-$pkgver

	mkdir -p builds/lsl-registration && cd builds/lsl-registration
	cmake -Dinstall-headers:bool=on -Dlibrary:string=registration -DCMAKE_INSTALL_PREFIX=/usr ../..
	make

	mkdir -p ../lsl-registration-lib && cd ../lsl-registration-lib
	cmake -Dinstall-library:bool=on -Dlibrary:string=registration -DCMAKE_INSTALL_PREFIX=/usr ../..
	make
}

package_lsl-registration() {
	pkgdesc='A library for working with LIDAR data - development headers'
	depends=("lsl-core>=$pkgver" "lsl-registration-lib=$pkgver")

	cd lsl-$pkgver/builds/$pkgname
	make DESTDIR="$pkgdir/" install
}

package_lsl-registration-lib() {
	pkgdesc='A library for working with LIDAR data - runtime library'
	depends=("lsl-core-lib>=$pkgver" 'yaml-cpp>=0.5')

	cd lsl-$pkgver/builds/$pkgname
	make DESTDIR="$pkgdir/" install
}