summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-09-17 22:17:03 -0400
committerAndrew Sun2018-09-17 22:17:03 -0400
commitc21727eaa665353aaafb498c159b0d0bf317ed05 (patch)
treea3533f6fe464e9b8f8b5d1e286a580ba1086c93d
parentdff3dfa83485c6b0795b5ef57c882eaab30b7d0a (diff)
downloadaur-c21727eaa665353aaafb498c159b0d0bf317ed05.tar.gz
mingw-w64-proj: fix install
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD13
2 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d233d04f110..a0d70a12ae5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,6 +6,7 @@ pkgbase = mingw-w64-proj
arch = any
license = MIT
makedepends = mingw-w64-configure
+ makedepends = mingw-w64-wine
depends = mingw-w64-crt
options = !strip
options = !buildflags
diff --git a/PKGBUILD b/PKGBUILD
index 7f66edc503a..395b3f95f83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,8 @@ pkgrel=1
arch=('any')
pkgdesc="Cartographic Projections library. (mingw-w64)"
depends=('mingw-w64-crt')
-makedepends=('mingw-w64-configure')
+makedepends=('mingw-w64-configure'
+ 'mingw-w64-wine')
options=('!strip' '!buildflags' 'staticlibs')
license=('MIT')
url="http://trac.osgeo.org/proj/"
@@ -16,11 +17,11 @@ sha256sums=('ef919499ffbc62a4aae2659a55e2b25ff09cccbbe230656ba71c6224056c7e60')
_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}
+ mkdir -p ${srcdir}/build-${_arch} && pushd ${srcdir}/build-${_arch}
+ cp -rf "${srcdir}"/proj-${pkgver}/. ${srcdir}/build-${_arch}
${_arch}-configure \
- ..
+ .
make
popd
done
@@ -28,8 +29,8 @@ build() {
package() {
for _arch in ${_architectures}; do
- cd "${srcdir}/proj-${pkgver}/build-${_arch}"
- make DESTDIR="${pkgdir}/" install
+ cd "${srcdir}/build-${_arch}"
+ make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/${_arch}/share
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll