blob: 46bae04c9ac00edc79a993de50838f35f063c2d5 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Contributor: MutantMonkey <mutantmonkey@gmail.com>
pkgname=qgis-1.6
pkgver=15265
pkgrel=8
pkgdesc="Quantum GIS, Geographic Information System; old 1.6 stable version"
arch=('i686' 'x86_64')
url="http://qgis.org/"
license=('GPL')
depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt4' 'python2' 'python2-pyqt' 'giflib' 'xerces-c' 'cfitsio' 'qwt5' 'gdal')
makedepends=('subversion' 'gsl' 'postgis' 'netcdf' 'cmake' 'fcgi' 'python2-sip' 'pyqt')
optdepends=('postgis: postgis support and SPIT plugin'
'fcgi: qgis mapserver'
'python2-sip: python-support'
'grass64: grass plugin'
'gsl: georeferencer ')
provides=('qgis')
conflicts=('qgis' 'qgis-git' 'qwt')
options=('!makeflags')
source=('qgis.desktop'
'fix-bunch_errors.patch'
'FindPyQt.py')
md5sums=('8ab66039f2aba519b92f52272ec3c13e'
'a4ebe0567ab3c35437039412e27d1ac0'
'e14fc64843d36a7301928b4efd4a3274')
_svntrunk=https://svn.osgeo.org/qgis/branches/Release-1_6_0
_svnmod=qgis-1.6
build() {
cd "$srcdir"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
patch -p0 -i ${srcdir}/fix-bunch_errors.patch
mv "${srcdir}/FindPyQt.py" cmake/
find . -iname '*.py' | xargs sed -ie 's:^#!/usr/bin/env python$:#!/usr/bin/env python2:'
find . -iname '*.py' | xargs sed -ie 's:^#!/usr/bin/python$:#!/usr/bin/env python2:'
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DPEDANTIC=TRUE \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGRASS_PREFIX=/opt/grass64 \
-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 || return 1
}
package() {
cd "$srcdir/$_svnmod-build"
make install DESTDIR=${pkgdir}
# install some freedesktop.org compatibility
install -D -m644 ${srcdir}/qgis.desktop \
${pkgdir}/usr/share/applications/qgis.desktop
}
|