summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eea69a76676c36cfc3c16ce1e418b1f04b109f7f (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
# Maintainer: gosciunew <gosciunew@gmail.com>
 
pkgname=openambit
pkgver=0.5
pkgrel=1
epoch=1
pkgdesc="Open software for the Suunto Ambit(2)"
arch=('i686' 'x86_64')
url="https://github.com/openambitproject/openambit"
license=('GPL3+')
depends=('qt5-base')
optdepends=()
makedepends=('gcc' 'make' 'cmake' 'qt5-tools')
conflicts=('openambit-git')
options=('!strip' '!emptydirs')
 
source=("$pkgname::git+https://github.com/openambitproject/${pkgname}.git#branch=master")
 
sha512sums=('SKIP')
 
prepare() {
  msg2 "Prepare"
}
 
build() {
  msg2 "Build"
  cd "${srcdir}/${pkgname}"
  BUILD_EXTRAS=0 ./build.sh -DCMAKE_BUILD_TYPE=Release
}
 
package() {
  msg2 "Package"
  install -Dm0644 "${srcdir}/${pkgname}/libambit-build/libambit.so.0.5.0" "${pkgdir}/usr/lib/${pkgname}/libambit.so.0.5.0"
  ln -s /usr/lib/${pkgname}/libambit.so.0.5.0 $pkgdir/usr/lib/libambit.so.0
  ln -s /usr/lib/${pkgname}/libambit.so.0 $pkgdir/usr/lib/libambit.so
 
  install -Dm0644 "${srcdir}/${pkgname}/movescount-build/libmovescount.so.0.3.0" "${pkgdir}/usr/lib/${pkgname}/libmovescount.so.0.3.0"
  ln -s /usr/lib/${pkgname}/libmovescount.so.0.3.0 $pkgdir/usr/lib/libmovescount.so.0
  ln -s /usr/lib/${pkgname}/libmovescount.so.0 $pkgdir/usr/lib/libmovescount.so
 
  install -Dm0755 "${srcdir}/${pkgname}/openambit-build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm0644 "${srcdir}/${pkgname}/src/libambit/libambit.rules" "${pkgdir}/usr/lib/udev/rules.d/99-suunto-ambit.rules"
 
  install -Dm0644 "${srcdir}/${pkgname}/tools/movescountXmlDiff.pl" "${pkgdir}/usr/share/${pkgname}/movescountXmlDiff.pl"
  install -Dm0644 "${srcdir}/${pkgname}/tools/openambit2gpx.py" "${pkgdir}/usr/share/${pkgname}/openambit2gpx.py"
}