summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18ffc05b9ff9fa01573b45d60fcd9f1f81403af1 (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
# Contributor: Harold Leboulanger <harold.leboulanger AT gmail DOT com>
# Maintainer: McNoggins <gagnon88 AT gmail DOT com>
pkgname=ttwatch-git
pkgver=20160107
pkgrel=1
pkgdesc="TomTom GPS Watch Utilities"
arch=('i686' 'x86_64')
url="https://github.com/ryanbinns/ttwatch"
license=('MIT')
groups=()
depends=('libusb' 'curl')
makedepends=('git' 'curl' 'libusb' 'openssl')
source=('ttwatch-git::git+https://github.com/ryanbinns/ttwatch.git'
	'ttwatch-git.install')
sha256sums=('SKIP'
            'c2583dfb88ae16e9349406f9e0025b20d54b0404bfd77c5d4555f11856ae2396')
install="ttwatch-git.install"

noextract=()

pkgver() {
  # Use date of latest commit for pkgver
  cd "$pkgname"
  git log -1 --format="%cd" --date=short | sed 's|-||g'
}

build() {
  cd "$pkgname"
  ./configure --prefix="$pkgdir/usr"
  make
}

package() {
  cd "$pkgname"
  install -d ${pkgdir}/usr/bin
  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  make install

}