Package Details: openambit 1:0.5-1

Git Clone URL: https://aur.archlinux.org/openambit.git (read-only, click to copy)
Package Base: openambit
Description: Open software for the Suunto Ambit(2)
Upstream URL: https://github.com/openambitproject/openambit
Licenses: GPL3+
Conflicts: openambit-git
Submitter: fanningert
Maintainer: gosciunew
Last Packager: gosciunew
Votes: 4
Popularity: 0.000000
First Submitted: 2015-08-23 14:56 (UTC)
Last Updated: 2021-07-04 23:45 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

twilk commented on 2019-05-11 20:41 (UTC)

The 0.4 release unfortunately doesn't build for me any more as cmake doesn't recognise qjson as being installed -- the package only installs Qt5-related files. Installing qt5-tools and qjson, and building master instead of 0.4 fixes this, though this is not a release and maybe better suited to the openambit-git package.

Here's my working PKGBUILD:

# Maintainer: Thomas Fanninger <thomas@fanninger.at>
# Contributor: Timo Wilken <timo dot 21 dot wilken plus aur at gmail dot com>

pkgname=openambit
pkgver=0.4-master
pkgrel=3
epoch=1
pkgdesc="Open software for the Suunto Ambit(2)"
arch=('i686' 'x86_64')
url="http://openambit.org/"
license=('GPL3+')
optdepends=()
makedepends=('cmake' 'gcc' 'glibc' 'qt5-tools' 'qjson' 'zlib' 'libusb' 'libpcap')
conflicts=('openambit-git')
options=('!strip' '!emptydirs')

source=("$pkgname::git+https://github.com/openambitproject/${pkgname}.git")

sha512sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}"
  ./build.sh -DCMAKE_BUILD_TYPE=Debug
}

package() {
  install -Dm0644 "${srcdir}/${pkgname}/libambit-build/libambit.so.0.4.0" "${pkgdir}/usr/lib/${pkgname}/libambit.so.0.4.0"
  ln -s "/usr/lib/${pkgname}/libambit.so.0.4.0" "$pkgdir/usr/lib/libambit.so.0"
  ln -s "/usr/lib/${pkgname}/libambit.so.0" "$pkgdir/usr/lib/libambit.so"

  # libmovescount split off after 0.4, it is now a separate library in the same repository
  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}"
  # apparently not present in master any more
  #install -Dm0644 "${srcdir}/${pkgname}/src/openambit/deployment/99-suunto-ambit.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"
}