summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5679302ed21eedb81c1a371a1cccd7af36e551ab (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
pkgname=crane-gps-watch-git
_pkgname=crane_gps_watch
pkgver=20170125
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+https://github.com/mru00/crane_gps_watch.git")
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"
  aclocal || return 1
  automake --add-missing || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="$pkgdir/" install
}
md5sums=('SKIP')