summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBranislav Holý2016-03-14 11:25:50 +0100
committerBranislav Holý2016-03-14 11:25:50 +0100
commit5681fffca4eb947cdd32ed772541125b0f868796 (patch)
tree3d3c6b1707a1facd1e0ffd7981e587a93c785003
parent9b5fe65f002a86f6e85bf382e7d9b959beb4ef16 (diff)
downloadaur-5681fffca4eb947cdd32ed772541125b0f868796.tar.gz
Changed to a split package.
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD35
2 files changed, 33 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index df17df5d69a..542698fc03e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
# Generated by pakanton
pkgbase = lsl-core
pkgver = 0.1.3
- pkgrel = 1
+ pkgrel = 2
pkgdesc = A library for working with LIDAR data
url = https://github.com/branoholy/lsl
arch = i686
@@ -12,8 +12,7 @@ pkgbase = lsl-core
arch = aarch64
license = GPL3
makedepends = cmake>=2.8
- depends = eigen>=3.0
- depends = lsl-core-lib>=0.1.3
+ makedepends = eigen>=3.0
source = https://github.com/branoholy/lsl/archive/v0.1.3/lsl-0.1.3.tar.gz
source = https://github.com/branoholy/lsl/releases/download/v0.1.3/lsl-0.1.3.tar.gz.sig
md5sums = 1bfbf88bcccc81c519dab49c4e57d07c
@@ -26,3 +25,9 @@ pkgbase = lsl-core
sha512sums = 4e716b35bc71b4f51b43857ccd7dc1e4ec5fbb5af22eb60a1d393a59ef62398c3a5b07db6aaab96b7cf220d0b08efa3e28a5060f78589b81c3345990e0dbf1cc
pkgname = lsl-core
+ pkgdesc = A library for working with LIDAR data - development headers
+ depends = eigen>=3.0
+ depends = lsl-core-lib=0.1.3
+
+pkgname = lsl-core-lib
+ pkgdesc = A library for working with LIDAR data - runtime library
diff --git a/PKGBUILD b/PKGBUILD
index b4da3cf644b..a83f1fa5507 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Generated by pakanton
# Maintainer: Branislav Holý <branoholy@gmail.com>
-pkgname=lsl-core
-pkgver=0.1.3
-pkgrel=1
-pkgdesc="A library for working with LIDAR data"
+pkgbase='lsl-core'
+pkgname=('lsl-core' 'lsl-core-lib')
+pkgver='0.1.3'
+pkgrel='2'
+pkgdesc='A library for working with LIDAR data'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
-url="https://github.com/branoholy/lsl"
+url='https://github.com/branoholy/lsl'
license=('GPL3')
-makedepends=('cmake>=2.8')
-depends=('eigen>=3.0' 'lsl-core-lib>=0.1.3')
+makedepends=('cmake>=2.8' 'eigen>=3.0')
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=('1bfbf88bcccc81c519dab49c4e57d07c'
@@ -23,12 +23,27 @@ validpgpkeys=('D25809BF3563AA56A12B0F4D545EDD46FBAC61E6')
build() {
cd lsl-$pkgver
- mkdir -p build && cd build
+
+ mkdir -p builds/lsl-core && cd builds/lsl-core
cmake -Dinstall-headers:bool=on -Dlibrary:string=core -DCMAKE_INSTALL_PREFIX=/usr ..
make
+
+ mkdir -p ../lsl-core-lib && cd ../lsl-core-lib
+ cmake -Dinstall-library:bool=on -Dlibrary:string=core -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package_lsl-core() {
+ pkgdesc='A library for working with LIDAR data - development headers'
+ depends=('eigen>=3.0' "$pkgname-lib=$pkgver")
+
+ cd lsl-$pkgver/builds/$pkgname
+ make DESTDIR="$pkgdir/" install
}
-package() {
- cd lsl-$pkgver/build
+package_lsl-core-lib() {
+ pkgdesc='A library for working with LIDAR data - runtime library'
+
+ cd lsl-$pkgver/builds/$pkgname
make DESTDIR="$pkgdir/" install
}