summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2016-03-13 11:16:28 +0100
committerMichel Zou2016-03-13 11:16:28 +0100
commit238c32b6645957028512ebaefa95f2ddec584801 (patch)
tree9369eabfbc9a1104677176595390e4b8bc294b79
parentff773672622322f97b6a1e2ca6a0efe3ce82a6d1 (diff)
downloadaur-238c32b6645957028512ebaefa95f2ddec584801.tar.gz
4.9.2
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD43
2 files changed, 29 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2c127cead5d..2c4f51ab635 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
+# Generated by mksrcinfo v8
+# Sun Mar 13 10:16:27 UTC 2016
pkgbase = mingw-w64-proj
- pkgdesc = MinGW Windows port of Proj.4 (mingw-w64)
- pkgver = 4.8.0
+ pkgdesc = Cartographic Projections library. (mingw-w64)
+ pkgver = 4.9.2
pkgrel = 1
url = http://trac.osgeo.org/proj/
arch = any
license = BSD
- makedepends = mingw-w64-gcc
+ makedepends = mingw-w64-configure
depends = mingw-w64-crt
options = !strip
options = !buildflags
- source = http://download.osgeo.org/proj/proj-4.8.0.tar.gz
- md5sums = d815838c92a29179298c126effbb1537
+ options = staticlibs
+ source = https://github.com/OSGeo/proj.4/archive/4.9.2.tar.gz
+ sha256sums = 9a40de36183d23a395cf51ba7a465e1e6c982b6e4553b31310c42012d188be6b
pkgname = mingw-w64-proj
diff --git a/PKGBUILD b/PKGBUILD
index 329672aff64..8f5854500a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,32 @@
-# Maintainer: Fernando Pacheco <fernando.pacheco@ingesur.com.uy>
-
pkgname=mingw-w64-proj
-pkgver=4.8.0
+pkgver=4.9.2
pkgrel=1
arch=('any')
-pkgdesc="MinGW Windows port of Proj.4 (mingw-w64)"
+pkgdesc="Cartographic Projections library. (mingw-w64)"
depends=('mingw-w64-crt')
-makedepends=('mingw-w64-gcc')
-options=(!strip !buildflags)
+makedepends=('mingw-w64-configure')
+options=('!strip' '!buildflags' 'staticlibs')
license=('BSD')
url="http://trac.osgeo.org/proj/"
-source=("http://download.osgeo.org/proj/proj-${pkgver}.tar.gz")
-md5sums=('d815838c92a29179298c126effbb1537')
-
+source=("https://github.com/OSGeo/proj.4/archive/${pkgver}.tar.gz")
+sha256sums=('9a40de36183d23a395cf51ba7a465e1e6c982b6e4553b31310c42012d188be6b')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+prepare () {
+ cd "${srcdir}"/proj.4-${pkgver}
+ sed -i "76,80d" src/Makefile.am
+ sed -i "s|src man nad jniwrap cmake|src man jniwrap cmake|g" Makefile.am
+ autoreconf -vfi
+}
+
build()
{
- cd ${srcdir}/proj-${pkgver}
-
+ cd "${srcdir}"/proj.4-${pkgver}
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
- unset LDFLAGS
- ../configure \
- --host=${_arch} \
- --prefix=/usr/${_arch} \
- --without-mutex
+ ${_arch}-configure \
+ ..
make
popd
done
@@ -34,12 +34,11 @@ build()
package() {
for _arch in ${_architectures}; do
- cd "$srcdir/proj-${pkgver}/build-${_arch}"
+ cd "$srcdir/proj.4-${pkgver}/build-${_arch}"
make DESTDIR="$pkgdir/" install
- ${_arch}-strip "$pkgdir/usr/${_arch}"/bin/*.exe
- ${_arch}-strip -x -g "$pkgdir/usr/${_arch}"/bin/*.dll
- ${_arch}-strip -g "$pkgdir/usr/${_arch}/lib"/*.a
- rm -rf "$pkgdir/usr/${_arch}"/share/{doc,man}
- rm -rf "$pkgdir/usr/${_arch}"/{etc,var,libexec}
+ rm -r "$pkgdir"/usr/${_arch}/share
+ rm "$pkgdir/usr/${_arch}"/bin/*.exe
+ ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
+ ${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}