summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f72dfb31e19e937ca9cd36f921863df94a789c79 (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
pkgname=crane-gps-watch-git
_pkgname=crane_gps_watch
pkgver=20150806
pkgrel=1
pkgdesc="Linux client for Crane gps watch (from Aldi or Hofer). It reads from the watch and writes to '.tcx', Garmin Training Center file."
arch=('any')
url="https://github.com/mru00/crane_gps_watch"
source=("git://github.com/mru00/crane_gps_watch.git"
       'timezone.patch')
license=('GPL')
depends=('libxml2')
makedepends=('git')
provides=('crane-gps-watch')
conflicts=('crane-gps-watch')
options=('!emptydirs')

pkgver() {
  cd "$srcdir/$_pkgname"
  git log -1 --pretty=format:%cd --date=short | sed 's/-//g'
}

package(){
  cd "$srcdir/$_pkgname"
  patch -p1 < $srcdir/timezone.patch
#  CXXFLAGS="$CXXFLAGS -Wno-error=maybe-uninitialized"
#  CFLAGS="$CFLAGS -Wno-error=maybe-uninitialized"
  aclocal || return 1
  automake --add-missing || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="$pkgdir/" install

#  install -d "${pkgdir}"/usr/bin
#  install -Dm755 "${srcdir}/${_pkgname}/crane_gps_watch_client" "${pkgdir}/usr/bin/crane_gps_watch_client"
}
md5sums=('SKIP'
         '1a94591f03be329b84f28c4570064223')