blob: 87cdcd4fa3f89f69433443402ed7e47688260c73 (
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
|
# Maintainer: Ilya Elenskiy
pkgname=enroute-git
_name=enroute
pkgver=1.8.1.r135.g2885539
pkgrel=1
pkgdesc="Enroute Flight Navigation"
arch=('i686' 'x86_64')
url="https://akaflieg-freiburg.github.io/enroute/"
license=('GPL3')
makedepends=('cmake' 'clang')
depends=('qt5-location' 'hicolor-icon-theme')
source=("enroute::git+https://github.com/Akaflieg-Freiburg/enroute.git#branch=master")
md5sums=('SKIP')
pkgver() {
cd "$_name"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_name}"
git submodule update --init --recursive
sed -i 's/\/usr\/share\/qt5/\/usr\/share\/qt/g' src/CMakeLists.txt
}
build() {
cd "${_name}"
export ASAN_OPTIONS=detect_leaks=0
export CC=clang
export CXX=clang++
cmake -S . -B ./build \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_FIND_ROOT_PATH:STRING='/usr/share/qt' \
-Wno-dev
cd build
make
}
package() {
cd "${_name}"
make -C build DESTDIR="$pkgdir" install
}
|