summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Fanninger2015-08-25 18:13:17 +0200
committerThomas Fanninger2015-08-25 18:13:17 +0200
commit5477450fed7a48939b1db39cb39328a0ad223534 (patch)
tree7868b344cc16d630cf18c0dba95a42764d73b366
downloadaur-5477450fed7a48939b1db39cb39328a0ad223534.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD43
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..57e30b14c0b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = openambit-git
+ pkgdesc = Open software for the Suunto Ambit(2)
+ pkgver = 20150825
+ pkgrel = 1
+ epoch = 1
+ url = http://openambit.org/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ makedepends = gcc
+ makedepends = glibc
+ makedepends = qt4
+ makedepends = qjson
+ makedepends = zlib
+ makedepends = libusb
+ makedepends = libpcap
+ conflicts = openambit
+ options = !strip
+ options = !emptydirs
+ source = openambit::git+https://github.com/openambitproject/openambit.git
+ sha512sums = SKIP
+
+pkgname = openambit-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4782f97074f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Thomas Fanninger <thomas@fanninger.at>
+
+pkgname=openambit-git
+_pkgname=openambit
+pkgver=20150825
+pkgrel=1
+epoch=1
+pkgdesc="Open software for the Suunto Ambit(2)"
+arch=('i686' 'x86_64')
+url="http://openambit.org/"
+license=('MIT')
+#depends=('qt4' 'qjson' 'zlib' 'libusb' 'libpcap')
+optdepends=()
+makedepends=('cmake' 'gcc' 'glibc' 'qt4' 'qjson' 'zlib' 'libusb' 'libpcap')
+conflicts=('openambit')
+options=('!strip' '!emptydirs')
+
+source=("${_pkgname}::git+https://github.com/openambitproject/${_pkgname}.git")
+
+sha512sums=('SKIP')
+
+prepare() {
+ msg2 "Prepare"
+}
+
+build() {
+ msg2 "Build"
+ cd "${srcdir}/${_pkgname}"
+ ./build.sh -DCMAKE_BUILD_TYPE=Debug
+}
+
+package() {
+ msg2 "Package"
+ install -Dm0644 "${srcdir}/${_pkgname}/libambit-build/libambit.so.0.3.0" "${pkgdir}/usr/lib/${_pkgname}/libambit.so.0.3.0"
+ ln -s /usr/lib/${_pkgname}/libambit.so.0.3.0 $pkgdir/usr/lib/libambit.so.0
+ ln -s /usr/lib/${_pkgname}/libambit.so.0 $pkgdir/usr/lib/libambit.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-libambit.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"
+}