summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 169cd19fae184b4e52015bf65368d9c49a7df689 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: robertfoster
# Contributor: kehon

pkgname=traccar-bin
pkgver=6.6 # renovate: datasource=github-tags depName=tananaev/traccar
pkgrel=1
pkgdesc="Open source GPS tracking system"
arch=('i686' 'x86_64')
url="http://www.traccar.org/"
license=('APACHE')
backup=('opt/traccar/conf/traccar.xml')
source=("https://github.com/tananaev/traccar/releases/download/v${pkgver}/${pkgname%%-*}-linux-64-$pkgver.zip")

package() {
  cd "${srcdir}"
  ./traccar.run --noexec --target "${pkgdir}/opt/traccar/"
  install -m755 -d "${pkgdir}/usr/lib/systemd/system"
  mv "${pkgdir}/opt/traccar/traccar.service" "${pkgdir}/usr/lib/systemd/system/"
  chmod 755 -R "${pkgdir}/opt"
}

sha256sums=('a5f324143ccac02bd5ea3dfc9153e92ff95be90aa1549f024f8823fee558ac4d')