diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /gis | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'gis')
-rw-r--r-- | gis/grass/PKGBUILD | 119 | ||||
-rw-r--r-- | gis/grass/grass.conf | 1 | ||||
-rw-r--r-- | gis/grass/grass.install | 26 | ||||
-rw-r--r-- | gis/grass/grass.sh | 4 | ||||
-rw-r--r-- | gis/libfreexl/PKGBUILD | 21 | ||||
-rw-r--r-- | gis/libspatialite/PKGBUILD | 24 | ||||
-rw-r--r-- | gis/merkaartor/PKGBUILD | 38 | ||||
-rw-r--r-- | gis/merkaartor/install | 12 | ||||
-rw-r--r-- | gis/qgis/PKGBUILD | 64 | ||||
-rw-r--r-- | gis/qgis/qgis.desktop | 10 | ||||
-rw-r--r-- | gis/qgis/qgis_1.7.4_gcc4.7.patch | 20 | ||||
-rw-r--r-- | gis/spatialindex/PKGBUILD | 31 |
12 files changed, 370 insertions, 0 deletions
diff --git a/gis/grass/PKGBUILD b/gis/grass/PKGBUILD new file mode 100644 index 000000000..eaf1dfc5c --- /dev/null +++ b/gis/grass/PKGBUILD @@ -0,0 +1,119 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org +# Contributor: Emiliano Vavassori <syntaxerrormmm(at)gmail.com> + +pkgname=grass +pkgver=6.4.2 +pkgrel=2 +pkgdesc='Geographic Information System (GIS) used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization.' +arch=('i686' 'x86_64') +url='http://grass.fbk.eu/' +license=('GPL') +depends=('cfitsio' 'fftw' 'gdal' 'libjpeg' 'libpng' 'libtiff' 'libxmu' 'mesa' 'python2' 'postgresql' 'proj' 'tcl' 'tk' 'wxpython' 'xorg-server') +makedepends=('freetype2') +optdepends=('sqlite3: sqlite3 database interface' + 'mysql: mysql database interface' + 'r: R language interface' + 'blas: required for GMATH library' + 'lapack: required for GMATH library' + 'cairo: cairo support' + 'ffmpeg: ffmpeg support' + 'lesstif: motif support') +options=('!libtool' '!makeflags') +install='grass.install' +source=("http://grass.fbk.eu/grass64/source/${pkgname}-${pkgver}.tar.gz" + "grass.sh" + "grass.conf") +md5sums=('d3398d6b1e3a2ef19cfb6e39a5ae9919' + 'a0e0ac6275e09a272f8ec38d3c0b4b3a' + '6103480c2a1adc19a50b9e925e5e6d4c') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # python2 fix + sed -i 's_python $< $(GISBASE) > $@_python2 $< $(GISBASE) > $@_' gui/wxpython/Makefile + for file in $(find . -name '*.py' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + # the following exports are probably not needed + export PYTHON=python2 + export DOXNAME=python2 + export GRASS_python=python2 + + # fix wxpython error + sed -i 's/python/&2/' ./include/Make/Platform.make.in + + # see ${srcdir}/grass-6.4.0/REQUIREMENTS.html for options + ./configure \ + --prefix=/opt \ + --with-fftw \ + --with-postgres \ + --with-freetype \ + --with-freetype-includes=/usr/include/freetype2 \ + --with-nls \ + --with-gdal \ + --with-geos \ + --with-proj \ + --with-proj-share=/usr/share/proj \ + --with-python=/usr/bin/python2-config \ + --with-wxwidgets=/usr/bin/wx-config + + # sqlite3 support + # --with-sqlite \ + + # mysql support + # --with-mysql \ + # --with-mysql-includes=/usr/include/mysql \ + + # blas support + # --with-blas \ + + # lapack support + # --with-lapack \ + + make + + # some more potential problems nvm, works without, but save for future use if problems arrise + #cd ${pkgdir}/opt/grass-${pkgver} + #sed -i 's/PYTHON = python/PYTHON = python2/' include/Make/Python.make + #sed -i 's/GRASS_PYTHON=python/GRASS_PYTHON=python2/' etc/Init.sh +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make \ + INST_DIR=${pkgdir}/opt/grass-${pkgver} \ + BINDIR=${pkgdir}/usr/bin \ + install + + # fix $GISBASE path + sed -i "s|GISBASE=${pkgdir}/opt/grass-${pkgver}|GISBASE=/opt/grass-${pkgver}|g" \ + ${pkgdir}/usr/bin/grass64 + + # install profile.d file + install -D ${srcdir}/grass.sh \ + ${pkgdir}/etc/profile.d/grass.sh + + # install some freedesktop.org compatibility + install -D -m644 gui/icons/grass.desktop \ + ${pkgdir}/usr/share/applications/grass.desktop + + sed -i -e 's/grass65/grass64/' -e 's_/usr/share/icons_/usr/share/pixmaps_' \ + ${pkgdir}/usr/share/applications/grass.desktop + + install -D -m644 gui/icons/grass-48x48.png \ + ${pkgdir}/usr/share/pixmaps/grass-48x48.png + + install -D -m644 ${srcdir}/grass.conf \ + ${pkgdir}/etc/ld.so.conf.d/grass.conf + + # install g.html2man which is needed for some extensions + # FS#25705 - [grass] g.html2man is not installed into package directory + # https://bugs.archlinux.org/task/25705 + # most likely upstream problem which will be fixed in a version later than 6.4.1 + cp -r ./tools/g.html2man ${pkgdir}/opt/${pkgname}-${pkgver}/tools +} diff --git a/gis/grass/grass.conf b/gis/grass/grass.conf new file mode 100644 index 000000000..bb4964d93 --- /dev/null +++ b/gis/grass/grass.conf @@ -0,0 +1 @@ +/opt/grass/lib diff --git a/gis/grass/grass.install b/gis/grass/grass.install new file mode 100644 index 000000000..878ea0186 --- /dev/null +++ b/gis/grass/grass.install @@ -0,0 +1,26 @@ +## arg 1: the new package version +post_install() { + pkgver=${1%-*} + + # Create symlink for version workaround. + ln -sf /opt/grass-${pkgver} /opt/grass + + echo 'Please relogin for required variables to be set from /etc/profile.d/grass.sh' +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + pkgver=${1%-*} + + # Updating symlink for new version + ln -sf /opt/grass-${pkgver} /opt/grass +} + +## arg 1: the old package version +pre_remove() { + # Removing cruft symlink + rm -f /opt/grass +} + +# vim:set ts=2 sw=2 et: diff --git a/gis/grass/grass.sh b/gis/grass/grass.sh new file mode 100644 index 000000000..ccc2fcd7e --- /dev/null +++ b/gis/grass/grass.sh @@ -0,0 +1,4 @@ +export GISBASE=/opt/grass +export PATH=$PATH:$GISBASE/bin +export MANPATH=$MANPATH:$GISBASE/man +export GRASS_PYTHON=python2 diff --git a/gis/libfreexl/PKGBUILD b/gis/libfreexl/PKGBUILD new file mode 100644 index 000000000..533071120 --- /dev/null +++ b/gis/libfreexl/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Bruno Gola <brunogola at gmail dot com> +pkgname=libfreexl +pkgver=1.0.0b +pkgrel=1 +pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet." +arch=('i686' 'x86_64') +url="https://www.gaia-gis.it/fossil/freexl/index" +license=('MPL') +source=("http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-1.0.0b.tar.gz") +md5sums=('e2e1c59eb2883d825782dfe8fe244207') + +build() { + cd "$srcdir/freexl-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/freexl-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/gis/libspatialite/PKGBUILD b/gis/libspatialite/PKGBUILD new file mode 100644 index 000000000..13e2b8335 --- /dev/null +++ b/gis/libspatialite/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Brian Galey <bkgaley at gmail dot com> +# Contributor: Pietro Zambelli <peter.zamb at gmail dot com> +pkgname=libspatialite +pkgver=3.0.1 +pkgrel=2 +pkgdesc="SQLite extension to support spatial data types and operations" +arch=('i686' 'x86_64') +url="https://www.gaia-gis.it/fossil/libspatialite/index" +license=('MPL') +depends=('geos' 'proj' 'sqlite3' 'libfreexl') +options=('!libtool') +source=("http://www.gaia-gis.it/gaia-sins/libspatialite-3.0.1.tar.gz") +md5sums=('450d1a0d9da1bd9f770b7db3f2509f69') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir/" install +} diff --git a/gis/merkaartor/PKGBUILD b/gis/merkaartor/PKGBUILD new file mode 100644 index 000000000..333bc15fb --- /dev/null +++ b/gis/merkaartor/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Michael Kanis <mkanis gmx de> +# Contributor: Paulo Freire <paulofreire gmail com> +# Contributor: Brice Maron <brice bmaron net> + +pkgname=merkaartor +pkgver=0.17.2 +pkgrel=3 +pkgdesc='OpenStreetMap editor' +url='http://merkaartor.be/' +arch=('i686' 'x86_64') +license=('GPL2') +makedepends=('boost') +depends=('qtwebkit' 'exiv2') +optdepends=('gpsd' 'desktop-file-utils' 'gtk-update-icon-cache') +source=("http://www.merkaartor.be/attachments/download/253/merkaartor-${pkgver}.tar.bz2") +sha1sums=('f789141db427bf25bb3b61801fefc98ab0430012') + +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + echo 'QMAKE_MOC = $$QMAKE_MOC -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED' >> src/src.pro + lrelease src/src.pro + qmake Merkaartor.pro \ + PREFIX="/usr" \ + GEOIMAGE=1 \ + NODEBUG=1 \ + RELEASE=1 \ + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make INSTALL_ROOT="${pkgdir}" install +} diff --git a/gis/merkaartor/install b/gis/merkaartor/install new file mode 100644 index 000000000..af0c8724a --- /dev/null +++ b/gis/merkaartor/install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/gis/qgis/PKGBUILD b/gis/qgis/PKGBUILD new file mode 100644 index 000000000..cb06ed0a6 --- /dev/null +++ b/gis/qgis/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Lantald < lantald at gmx.com +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org +# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> +# Contributor: Eric Forgeot < http://esclinux.tk > + +pkgname=qgis +pkgver=1.8.0 +pkgrel=2 +pkgdesc='Quantum GIS is a Geographic Information System (GIS) that supports vector, raster & database formats' +url='http://qgis.org/' +license=('GPL') +arch=('i686' 'x86_64') +# update to http://www.qgis.org/wiki/Building_QGIS_from_Source#Overview +depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt' 'python2' 'python2-qt' 'giflib' 'cfitsio' 'qwt' 'gdal' 'flex' 'bison' 'libspatialite' 'spatialindex') +makedepends=('cmake' 'grass' 'gsl' 'postgis' 'netcdf' 'fcgi' 'python2-sip') +optdepends=('postgis: postgis support and SPIT plugin' + 'fcgi: qgis mapserver' + 'python2-sip: python-support' + 'grass: grass plugin' + 'gsl: georeferencer') +options=('!makeflags') +source=("http://qgis.org/downloads/qgis-${pkgver}.tar.bz2" + 'qgis.desktop') + +md5sums=('1d60520f81d7763c026d0af887ac9a05' + '8ab66039f2aba519b92f52272ec3c13e') + +build() { + # Fix insecure RPATH is weird, but just works ;) + # echo "os.system(\"sed -i '/^LFLAGS/s|-Wl,-rpath,.\+ ||g' gui/Makefile core/Makefile\")" >> python/configure.py.in + #cd qgis-${pkgver} + + rm -rf build + mkdir build + cd build + + cmake ../qgis-${pkgver} \ + -DENABLE_TESTS=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DGRASS_PREFIX=/opt/grass \ + -DQGIS_MANUAL_SUBDIR=share/man \ + -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 \ + -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \ + -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/ + + make +} + +package() { + cd build + + make DESTDIR=${pkgdir} install + + # create a more user-friendly application name link + ln -s /usr/bin/qgis $pkgdir/usr/bin/quantum-gis + + # install some freedesktop.org compatibility + install -D -m644 ${srcdir}/qgis.desktop \ + ${pkgdir}/usr/share/applications/qgis.desktop +} diff --git a/gis/qgis/qgis.desktop b/gis/qgis/qgis.desktop new file mode 100644 index 000000000..c3db5ad08 --- /dev/null +++ b/gis/qgis/qgis.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Quantum GIS +GenericName="GIS" +Comment="Geographic Information System (GIS) that supports vector, raster & database formats" +Exec=/usr/bin/qgis +Icon=/usr/share/qgis/images/icons/qgis-icon.png +Terminal=false +MultipleArgs=false +Type=Application +Categories=Application;Science diff --git a/gis/qgis/qgis_1.7.4_gcc4.7.patch b/gis/qgis/qgis_1.7.4_gcc4.7.patch new file mode 100644 index 000000000..858a42c94 --- /dev/null +++ b/gis/qgis/qgis_1.7.4_gcc4.7.patch @@ -0,0 +1,20 @@ ++++ qgis-1.7.4/src/core/spatialindex/storagemanager/DiskStorageManager.cc 2012-04-21 13:58:04.107239275 +0300 +@@ -26,6 +26,7 @@ + #include <sys/stat.h> + #include <stdio.h> + #include <cstring> ++#include <unistd.h> + + #ifdef WIN32 + #include <io.h> + ++++ qgis-1.7.4/src/core/spatialindex/tools/TemporaryFile.cc 2012-04-21 13:16:42.213690282 +0300 +@@ -20,7 +20,7 @@ + // mhadji@gmail.com + + #include <stdio.h> +- ++#include <unistd.h> + #include <Tools.h> + + #ifdef WIN32 diff --git a/gis/spatialindex/PKGBUILD b/gis/spatialindex/PKGBUILD new file mode 100644 index 000000000..e0787808e --- /dev/null +++ b/gis/spatialindex/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Lantald <lantald at Gmx dot com> +pkgname=spatialindex +pkgver=1.7.1 +pkgrel=1 +pkgdesc="An extensible framework that supports robust spatial indexing methods and sophisticated spatial queries." +arch=('i686' 'x86_64') +url="http://libspatialindex.github.com/" +license=('(L)GPL') +depends=(gcc-libs) +provides=(spatialindex) +conflicts=(libspatialindex-git) +source=(http://download.osgeo.org/libspatialindex/$pkgname-src-$pkgver.tar.gz) +md5sums=('8599243d5d8204f0f8d92cd55ab120f5') + +build() { + cd "$srcdir/$pkgname-src-$pkgver/" + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$pkgname-src-$pkgver/" + make -k check +} + +package() { + cd "$srcdir/$pkgname-src-$pkgver/" + make DESTDIR="$pkgdir/" install +} + +# vim:set ts=2 sw=2 et: |