summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-08-02 20:00:53 +0200
committerxantares2015-08-02 20:00:53 +0200
commitff773672622322f97b6a1e2ca6a0efe3ce82a6d1 (patch)
tree671c478712ecafd38f3a0db9147691e7be11a44b
downloadaur-ff773672622322f97b6a1e2ca6a0efe3ce82a6d1.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD45
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2c127cead5d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = mingw-w64-proj
+ pkgdesc = MinGW Windows port of Proj.4 (mingw-w64)
+ pkgver = 4.8.0
+ pkgrel = 1
+ url = http://trac.osgeo.org/proj/
+ arch = any
+ license = BSD
+ makedepends = mingw-w64-gcc
+ depends = mingw-w64-crt
+ options = !strip
+ options = !buildflags
+ source = http://download.osgeo.org/proj/proj-4.8.0.tar.gz
+ md5sums = d815838c92a29179298c126effbb1537
+
+pkgname = mingw-w64-proj
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..329672aff64
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Fernando Pacheco <fernando.pacheco@ingesur.com.uy>
+
+pkgname=mingw-w64-proj
+pkgver=4.8.0
+pkgrel=1
+arch=('any')
+pkgdesc="MinGW Windows port of Proj.4 (mingw-w64)"
+depends=('mingw-w64-crt')
+makedepends=('mingw-w64-gcc')
+options=(!strip !buildflags)
+license=('BSD')
+url="http://trac.osgeo.org/proj/"
+source=("http://download.osgeo.org/proj/proj-${pkgver}.tar.gz")
+md5sums=('d815838c92a29179298c126effbb1537')
+
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+build()
+{
+ cd ${srcdir}/proj-${pkgver}
+
+ for _arch in ${_architectures}; do
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ unset LDFLAGS
+ ../configure \
+ --host=${_arch} \
+ --prefix=/usr/${_arch} \
+ --without-mutex
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir/proj-${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}
+ done
+}