summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSammysHP2016-06-22 19:12:38 +0200
committerSammysHP2016-06-22 19:12:38 +0200
commit265fc7d806820ddac1277dcd8125286d63bcb332 (patch)
tree79928c984f76b2f7861df4a5b62d8cdafc3e2122
parentccfe1e77d6ca2be89ebc6e5314a919b389638062 (diff)
downloadaur-265fc7d806820ddac1277dcd8125286d63bcb332.tar.gz
Fix build
Now two versions are available: cruiser and cruiser-gl (OpenGL).
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
-rwxr-xr-xcruiser.sh3
3 files changed, 20 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8d7107d54e5..bab72a8cbf5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Mon Jun 20 15:07:25 UTC 2016
+# Wed Jun 22 17:10:43 UTC 2016
pkgbase = cruiser
pkgdesc = Map and navigation application using offline vector maps
pkgver = 1.2.6
- pkgrel = 1
+ pkgrel = 2
url = http://wiki.openstreetmap.org/wiki/Cruiser
arch = any
license = proprietary (free)
@@ -15,7 +15,7 @@ pkgbase = cruiser
source = http://www.talent.gr/public/cruiser/cruiser-1.2.6.zip
source = cruiser.sh
md5sums = 67b41ec4c00d1c1b79910c5425fc0c9c
- md5sums = ab6112f9530a64b9ac8706ab7057cc8c
+ md5sums = 6c23697fc0421c752227dd1e1f29245f
pkgname = cruiser
diff --git a/PKGBUILD b/PKGBUILD
index 86718be0622..7db71ed9016 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=cruiser
pkgver=1.2.6
-pkgrel=1
+pkgrel=2
pkgdesc="Map and navigation application using offline vector maps"
arch=('any')
url="http://wiki.openstreetmap.org/wiki/Cruiser"
@@ -13,9 +13,20 @@ replaces=('atlas-maps' 'atlas-maps-bin' 'atlas-maps-beta-bin')
source=("http://www.talent.gr/public/cruiser/cruiser-${pkgver}.zip"
"cruiser.sh")
md5sums=('67b41ec4c00d1c1b79910c5425fc0c9c'
- 'ab6112f9530a64b9ac8706ab7057cc8c')
+ '6c23697fc0421c752227dd1e1f29245f')
+
+build () {
+ sed 's/cruiser.jar/cruiser-gl.jar/' cruiser.sh > cruiser-gl.sh
+}
package() {
- install -Dm644 "cruiser/cruiser.jar" "$pkgdir/usr/share/java/cruiser/cruiser.jar"
- install -Dm755 cruiser.sh "$pkgdir/usr/bin/cruiser"
+ for _f in cruiser{,-gl}; do
+ install -Dm644 "cruiser/$_f.jar" "$pkgdir/usr/share/java/cruiser/$_f.jar"
+ install -Dm755 "$_f.sh" "$pkgdir/usr/bin/$_f"
+ done
+
+ cd cruiser/lib
+ for _f in *.jar; do
+ install -Dm644 "$_f" "$pkgdir/usr/share/java/cruiser/lib/$_f"
+ done
}
diff --git a/cruiser.sh b/cruiser.sh
index 57d7282e447..ecf51dc67a3 100755
--- a/cruiser.sh
+++ b/cruiser.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-java -jar /usr/share/java/cruiser/cruiser.jar
+cd /usr/share/java/cruiser
+java -Xmx1024M -jar cruiser.jar