blob: 3b3183d0e0b58e1254fbb1681cfbfc346f628a4a (
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
|
pkgname=mrpt
pkgver=1.5.6
pkgrel=1
pkgdesc="Provides an extensive set of libraries, algorithms, and applications employed in a number of mobile robotics research areas."
arch=('i686' 'x86_64' 'armv7h')
url="http://www.mrpt.org"
license=('GPL3')
depends=('opencv' 'wxgtk' 'desktop-file-utils')
makedepends=('subversion' 'cmake' 'git')
optdepends=('ffmpeg: Video Support' 'freeglut' 'zlib'
'libftdi' 'libdc1394' 'libusb: Kinect support'
'pcl' 'assimp')
install=mrpt.install
_dir=${pkgname}-${pkgver}
_tag=${pkgver}
source=("${_dir}"::"git+https://github.com/MRPT/mrpt.git"#tag=${_tag}
"https://raw.githubusercontent.com/majorx234/mrpt_patch/master/mrpt_CmakeLists.patch"
"https://raw.githubusercontent.com/majorx234/FindNumPy.cmake/master/FindNumPy.cmake")
sha256sums=('SKIP'
'ec4f93431c098ef2515f6bb10358cb17dd3c804ebb295285792ad62f0826ab32'
'e8cbe6841595d594659d9a16464af2386efd0dce2947e8f348e2c47fad1d022f')
prepare() {
cp ${srcdir}/FindNumPy.cmake ${srcdir}/$pkgname-$pkgver/cmakemodules/
cd "${srcdir}/$pkgname-$pkgver"
patch -Np1 -i "${srcdir}/mrpt_CmakeLists.patch"
}
build() {
# Create build directory
[ -d ${srcdir}/build ] || mkdir ${srcdir}/build
cd ${srcdir}/build
cmake ${srcdir}/$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="-fpermissive" \
-DMRPT_OPTIMIZE_NATIVE=ON
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|