summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd477079d5eff67bfa58029aec94aad4ca4445d1 (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
# Maintainer: Achmad Fathoni <fathoniDOTidATgmailDOTcom>
_pkgname=RTKLIB
pkgname=rtklib-emlid-git
provides=("rtklib-qt")
pkgver=r587.81b5a61
pkgrel=3
pkgdesc="An Open Source Program Package for GNSS Positioning tuned for Emlid Device"
arch=('x86_64')
url="https://github.com/emlid/RTKLIB/tree/reach"
license=('GPL')
groups=('GNSS')
depends=('glibc' 'qt5-base' 'qt5-serialport')
makedepends=('git' 'gcc-fortran')
source=("${_pkgname}::git+https://github.com/emlid/RTKLIB.git#branch=reach"
        "https://github.com/emlid/RTKLIB/pull/110.patch"
        "https://github.com/emlid/RTKLIB/pull/111.patch")
sha256sums=('SKIP' 'SKIP' 'SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare(){
    cd "${_pkgname}"
    patch --forward --strip=1 --input="${srcdir}/110.patch"
    patch --forward --strip=1 --input="${srcdir}/111.patch"
}

build() {
    cd "${_pkgname}"
    mkdir -p build && cd build
    qmake -recursive ..
    make
}

package() {
    make -C ${_pkgname}/build INSTALL_ROOT="$pkgdir" install
}