summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c778d505d97ed411f48fb5ec5e468e7478b14af (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
42
# Maintainer: Xianwen Chen <xianwen.chen@gmail.com>

pkgname=geoda
pkgver=1.8.12
pkgrel=9
pkgdesc='GeoDa is an Exploratory (Spatial) Data Analysis and Spatial Regression software, for spatial data analysis including spatial econometrics.'
arch=('x86_64')
license=('custom:free_for_non_commercial_use')
url="http://geodacenter.github.io/download_linux.html"
depends=('libcurl-gnutls')
makedepends=('wget' 'dpkg' 'rsync')
install=$pkgname.install
source=(
  "https://s3.amazonaws.com/geoda/software/GeoDa-1.8.12-Ubuntu-64bit.deb"
)

package()
{
  cd "$srcdir/"
  dpkg -X ../GeoDa-1.8.12-Ubuntu-64bit.deb ./
      
  find . -type d -exec chmod 755 {} \;
  
  sed 's/usr\/local/usr/' <usr/bin/run_geoda.sh > usr/bin/geoda-3
  sed 's/$GEODA_HOME\/gdaldata/$HOME\/gdaldata/' <usr/bin/geoda-3 > usr/bin/geoda-2
  sed '/chmod/d' <usr/bin/geoda-2 > usr/bin/geoda
  chmod +x usr/bin/geoda
  rm usr/bin/run_geoda.sh
  rm usr/bin/geoda-2

  mv usr/local/geoda usr/geoda
  
  install -d $pkgdir/usr
  rsync -aPv usr/ $pkgdir/usr
	chmod -R 644 $pkgdir/usr
	chmod 777 $pkgdir/usr/bin/geoda
	chmod 777 $pkgdir/usr/geoda/GeoDa
	chmod 777 $pkgdir/usr/geoda/run.sh
	chmod 666 $pkgdir/usr/geoda/cache.sqlite
}

sha512sums=('9bb5f266dc8005093e55f271cb3c0803df7b57e1b1889a1ad5d6c763c319f12f5a8736d88672d1cd17e1fcd6ec3b3e6f45b6f6eec421a02355c7df43b7a42e95')