summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f8669d2dff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: robertfoster
+# Contributor: kehon
+
+pkgname=traccar-bin
+pkgver=4.0
+pkgrel=1
+pkgdesc="Open source GPS tracking system"
+arch=('i686' 'x86_64')
+url="http://www.traccar.org/"
+license=('APACHE')
+depends=(java-runtime)
+source=("https://github.com/tananaev/traccar/releases/download/v${pkgver}/${pkgname%%-*}-linux-$pkgver.zip"
+"${pkgname%%-*}.service")
+
+package() {
+ cd ${srcdir}
+ ./traccar.run --noexec --target $pkgdir/opt/traccar/
+ install -m755 -d "${pkgdir}/usr/lib/systemd/system"
+ install -m644 "${srcdir}/traccar.service" "${pkgdir}/usr/lib/systemd/system/"
+ install -m755 -d "${pkgdir}/opt/traccar/init.d"
+ chmod 755 -R $pkgdir/opt/*
+}
+
+md5sums=('2b3149854f56de4ad3212f0c8c1bf31e'
+ '3e230b1b98fb5d0ae71ee08ab96a7c92')