Merge branch 'testing' of gitorious.org:chakra-packages/platform into testing

This commit is contained in:
Phil Miller 2010-10-19 18:53:12 +02:00
commit c52f1cb443
8 changed files with 256 additions and 0 deletions

35
garmindev/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=garmindev
pkgver=0.3.4
pkgrel=1
pkgdesc="Garmin Device Drivers for QlandkarteGT"
arch=('i686' 'x86_64')
url="http://www.qlandkarte.org"
license=('GPL')
depends=('libusb')
makedepends=('cmake>=2.6')
source=("http://downloads.sourceforge.net/qlandkartegt/$pkgname-$pkgver.tar.gz")
md5sums=('ff52c697d6e2a720b6b4a9c7544b231d')
build() {
mkdir -p $srcdir/build
cd $srcdir/build
cmake -DCMAKE_INSTALL_PREFIX=/usr $srcdir/$pkgname-$pkgver
make
}
package(){
cd $srcdir/build
make DESTDIR=$pkgdir install
}

53
gdal/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=gdal
pkgver=1.7.2
pkgrel=1
pkgdesc="A translator library for raster geospatial data formats"
arch=('i686' 'x86_64')
url="http://www.gdal.org/"
license=('custom')
depends=('curl' 'geos' 'giflib' 'hdf5' 'libgeotiff' 'libjpeg>=8' 'libpng' 'libtiff'
'mysql' 'netcdf' 'postgresql' 'python' 'python-numpy' 'sqlite3')
makedepends=('cfitsio')
options=('!libtool' '!makeflags')
source=(http://download.osgeo.org/${pkgname}/${pkgname}-${pkgver}.tar.gz
gdal-1.5.1-python-install.patch)
md5sums=('05351f8cb61761ae579667e24a297fe6'
'81afc1c26d29cee84aadb6924fe33861')
build() {
export CFLAGS="$CFLAGS -fno-strict-aliasing"
cd ${srcdir}/$pkgname-$pkgver
patch -Np0 -i ${srcdir}/gdal-1.5.1-python-install.patch
# python2 fixes
sed -i 's_python python1.5_python2 python python1.5_' configure
for file in swig/python/{,osgeo/,samples/,scripts/}*.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 \
--with-geotiff --with-mysql --with-python --without-libtool --with-curl
# workaround for bug #13646
sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile
install -d ${pkgdir}/usr/lib/python2.7/site-packages/
make
make DESTDIR=${pkgdir} install
# install license
install -D -m644 LICENSE.TXT ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
#FS#15477 clean up junks
rm -f ${pkgdir}/usr/bin/gdal_sieve.dox
}

View File

@ -0,0 +1,10 @@
--- swig/python/GNUmakefile.orig 2010-04-24 01:22:07.000000000 +0200
+++ swig/python/GNUmakefile 2010-05-05 19:14:58.000000000 +0200
@@ -72,5 +72,5 @@
ifeq ($(PY_HAVE_SETUPTOOLS),1)
- $(PYTHON) setup.py install
+ $(PYTHON) setup.py install --root=$(DESTDIR)
else
- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+ $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(prefix)
endif

28
geos/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=geos
pkgver=3.2.1
pkgrel=1
pkgdesc="A C++ port of the Java Topology Suite"
arch=('i686' 'x86_64')
url="http://trac.osgeo.org/geos/"
license=('LGPL')
depends=('gcc-libs')
options=('!libtool')
source=(http://download.osgeo.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
md5sums=('01f01943bdf598977cee40905c9abfbf')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make || return 1
make DESTDIR=${pkgdir} install
}

31
libgeotiff/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=libgeotiff
pkgver=1.3.0
pkgrel=1
pkgdesc="A TIFF based interchange format for georeferenced raster imagery"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.remotesensing.org/geotiff"
depends=('libtiff' 'proj' 'libjpeg>=7')
options=('!makeflags')
source=(ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/$pkgname-$pkgver.tar.gz)
md5sums=('6ac3c22e44711e9a3add9044e40b9527')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/libgeotiff/LICENSE"
}

37
netcdf/PKGBUILD Normal file
View File

@ -0,0 +1,37 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=netcdf
pkgver=4.1.1
pkgrel=1
pkgdesc="Network Common Data Form interface for array-oriented data access and corresponding library."
arch=("i686" "x86_64")
url="http://www.unidata.ucar.edu/downloads/netcdf/index.jsp"
depends=('gcc-libs' 'hdf5' 'gcc-fortran')
options=('force' '!libtool' '!makeflags')
license=('custom')
source=(http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-${pkgver}.tar.gz)
sha1sums=('6fece208825b978fc2240732f6f57927d71a0552')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --enable-shared --enable-netcdf-4
make
make check
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
install -m755 -d ${pkgdir}/usr/lib
install -m755 -d ${pkgdir}/usr/share/man
make DESTDIR=${pkgdir} install
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/COPYRIGHT \
${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT
}

36
proj/PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=proj
pkgver=4.7.0
pkgrel=1
pkgdesc="Cartographic Projections library"
arch=('i686' 'x86_64')
url="http://trac.osgeo.org/proj/"
license=('MIT')
options=('!libtool')
source=(http://download.osgeo.org/proj/$pkgname-$pkgver.tar.gz
http://download.osgeo.org/proj/$pkgname-datumgrid-1.5.zip
http://www.swisstopo.admin.ch/internet/swisstopo/en/home/topics/survey/lv03-lv95/chenyx06/distortion_grids.parsys.65772.downloadList.94632.DownloadFile.tmp/chenyx06antv2.zip)
md5sums=('927d34623b52e0209ba2bfcca18fe8cd'
'f5bf28a2a9c6afe9a3f670f0c0adb783'
'fbbfe2b6bcbc41168fe3bdc4a6c1082a')
build() {
bsdtar -xzvf ${srcdir}/${pkgname}-datumgrid-1.5.zip -C ${srcdir}/proj-${pkgver}/nad
bsdtar -xzvf ${srcdir}/chenyx06antv2.zip -C ${srcdir}/proj-${pkgver}/nad CHENYX06a.gsb
cd ${srcdir}/proj-${pkgver}
./configure --prefix=/usr
make || return 1
make DESTDIR=${pkgdir} install
install -D COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

26
xerces-c/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=xerces-c
pkgver=3.1.1
pkgrel=1
pkgdesc="A validating XML parser written in a portable subset of C++."
arch=('i686' 'x86_64')
url="http://xerces.apache.org/xerces-c"
license=("APACHE")
depends=('gcc-libs' 'curl')
options=('!libtool')
source=("http://apache.osuosl.org/xerces/c/3/sources/xerces-c-${pkgver}.tar.gz")
md5sums=('6a8ec45d83c8cfb1584c5a5345cb51ae')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc || return 1
make || return 1
make DESTDIR=${pkgdir}/ install || return 1
}