summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6c1b2985ee7cc3ad1c47f951a78282309636558 (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
# Maintainer: Radek Podgorny <radek@podgorny.cz>

pkgname=opengts
pkgver=2.6.5
pkgrel=1
pkgdesc="A full featured web-based GPS tracking system for your fleet of vehicles"
arch=('i686' 'x86_64')
url="http://opengts.sourceforge.net/"
license=('APACHE')
depends=('java-runtime' 'mariadb-jdbc' 'java-gnumail' 'tomcat7' 'mariadb')
makedepends=('apache-ant')
install=opengts.install
source=("http://prdownloads.sourceforge.net/opengts/OpenGTS_${pkgver}.zip"
	'build.xml'
	'opengts.csh'
	'opengts.sh')

package() {
  cd ${srcdir}/OpenGTS_${pkgver}
  export CATALINA_HOME=/usr/share/tomcat7/
#  cp ../build.xml .
  ant all
  mkdir -p $pkgdir/usr/share/tomcat7/webapps/
  cp build/*.war $pkgdir/usr/share/tomcat7/webapps/
  mkdir -p $pkgdir/opt/opengts
  cp -r bin $pkgdir/opt/opengts/
  # install profile.d script
  install -dm755 ${pkgdir}/etc/profile.d
  install -m755 "${srcdir}"/${pkgname}.{csh,sh} ${pkgdir}/etc/profile.d/

  # remove .bat files
  rm $pkgdir/opt/opengts/bin/*.bat

  # Pdf Guide installation
  cp OpenGTS_Config.pdf ${pkgdir}/opt/opengts/
}

md5sums=('9da1fc3dc733048d4222d34e5d727291'
         'eaa24afc6598fad65c0aed030ebf37c8'
         '841e957e78f0a617fe89e7c9bb66132d'
         '9e8981a8ad668801e8fa07405fa281f0')