updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / routeconverter / PKGBUILD
blob511afe9c3fefc71a4169f8b229accb53be6d7516
1 # Maintainer: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
2 pkgname=routeconverter
3 pkgver=2.5
4 pkgrel=1
5 pkgdesc="A free tool to edit and convert routes, tracks and waypoints."
6 arch=(i686 x86_64)
7 url="http://www.routeconverter.de/en"
8 license=('GPL')
9 depends=('java-environment>=6' 'libwebkit3')
10 optdepends=('gpsbabel: for some additional format support')
11 changelog=ChangeLog
12 source=(routeconverter
13         routeconverter-cli
14         http://www.routeconverter.de/download/RouteConverterCmdLine.jar)
15 [ "$CARCH" == "i686" ]   && source=(${source[@]} http://www.routeconverter.de/download/RouteConverterLinux.jar)
16 [ "$CARCH" == "x86_64" ] && source=(${source[@]} http://www.routeconverter.de/download/RouteConverterLinux64.jar)
18 md5sums=('4bc45e6a1a93656a0deb8956f71b6af8'
19          'fdf570309917df1c1536b7e3c7740b33'
20          'aa368293d0693e4f60e6ecd4e599f843')
21 [ "$CARCH" == "i686" ]   && md5sums=(${md5sums[@]} '53984c6305b2ab364589512d89c3f7b7')
22 [ "$CARCH" == "x86_64" ] && md5sums=(${md5sums[@]} 'a704cdc31561b057cc0702d496fcc0d5')
24 noextract=(RouteConverterCmdLine.jar
25            RouteConverterLinux.jar
26            RouteConverterLinux64.jar)
28 build() {
29   cd "$srcdir"
32 package() {
33   cd "$srcdir"
35   install -m 755 -o root -g root -d ${pkgdir}/usr/bin
36   install -m 755 -o root -g root -d ${pkgdir}/usr/lib/${pkgname}
37   install -m 755 -o root -g root \
38                         ${srcdir}/routeconverter \
39                         ${srcdir}/routeconverter-cli \
40                         ${pkgdir}/usr/bin/
41   install -m 644 -o root -g root \
42                         ${srcdir}/RouteConverterCmdLine.jar \
43                         ${pkgdir}/usr/lib/${pkgname}/
45   [ "$CARCH" == "i686" ] && \
46   install -m 644 -o root -g root \
47                         ${srcdir}/RouteConverterLinux.jar \
48                         ${pkgdir}/usr/lib/${pkgname}/ || true
50   [ "$CARCH" == "x86_64" ] && \
51   install -m 644 -o root -g root \
52                         ${srcdir}/RouteConverterLinux64.jar \
53                         ${pkgdir}/usr/lib/${pkgname}/ || true
55   ln -s /usr/lib/libwebkitgtk-1.0.so.0 ${pkgdir}/usr/lib/${pkgname}/libwebkit-1.0.so.2
56   ln -s libwebkit-1.0.so.2 ${pkgdir}/usr/lib/${pkgname}/libwebkit-1.0.so