aboutsummaryrefslogtreecommitdiffstats
path: root/main/skytraq-datalogger/APKBUILD
blob: 35853d5ba05227a23d6f42af0ac5a92c02d8deec (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
41
42
43
44
45
46
47
48
49
50
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Mika Havela <mika.havela@gmail.com>
pkgname=skytraq-datalogger
pkgver=0.5.1
_pkgver=0.5-1
pkgrel=1
pkgdesc="Configuration and download tool for GPS data loggers based on Skytraq Venus 5 and 6 chipsets"
url="http://code.google.com/p/skytraq-datalogger/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev="curl-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/skytraq-datalogger/${pkgname}_${_pkgver}.tar.gz
	Makefile.patch
	agps-download.c.patch
	"

_builddir="$srcdir/${pkgname}-${_pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="e691f9092f63c7100313a9881ff100d4  skytraq-datalogger_0.5-1.tar.gz
5939083bf1ac066967f2489a21691ac5  Makefile.patch
4111c54fd124ef7a1aad49c585cd46e4  agps-download.c.patch"
sha256sums="3ee715c6131bb03b3903022ca5e5be4442cedfe87f87be603c609207d8eaa1ff  skytraq-datalogger_0.5-1.tar.gz
265a6f7e74ffe21e3749891a2f30fbce9540940f10cd8e807f9e3ca30374698a  Makefile.patch
fb451bc73d51a096d6ef5fbe52e84bb8845f108873edc935825f06adbdcc944d  agps-download.c.patch"
sha512sums="053cf6b65fcda439fc41ee517b3bf5ac91f531afeacfcad8f5216dc1a344896cd653bbd8af9584fc88c34c8cb281b903d17b50cb26e39f98e2beb31d37164893  skytraq-datalogger_0.5-1.tar.gz
c1437638aba221bd9e8c412661519f8821540a213474274580f57ea82d209bb84268b190efbfd8f54be4c1bb9b709c0c31dae003bf75684a441e21528d56174d  Makefile.patch
98970245e68a025586fb806913af328f4c9ab2bdd18954b5abb19f5f921725283d0df4ecff5503ea2f595d3d837488b874ec33b6e80b1858c22405403f900e83  agps-download.c.patch"