summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2020-05-11 15:43:51 -0400
committerAndrew Sun2020-05-11 15:43:51 -0400
commit00f0f1989a25b6110fadfb243a13c2e2b3b34a42 (patch)
treeedaf4d5092dea9ea3e9543fe60ed925175cdde10
parentb83895e4bc968f79c09e45295f596c677ba79157 (diff)
downloadaur-00f0f1989a25b6110fadfb243a13c2e2b3b34a42.tar.gz
fix build and remove .exe files
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8da2a6dc981..218f581f2f7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,7 @@ pkgbase = mingw-w64-proj
url = https://proj.org/
arch = any
license = MIT
+ makedepends = autoconf
makedepends = mingw-w64-configure
makedepends = mingw-w64-wine
depends = mingw-w64-crt
diff --git a/PKGBUILD b/PKGBUILD
index 507f2269fab..16318aefcc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgrel=1
arch=('any')
pkgdesc="Cartographic Projections library (mingw-w64)"
depends=('mingw-w64-crt' 'mingw-w64-sqlite' 'mingw-w64-libtiff' 'mingw-w64-curl')
-makedepends=('mingw-w64-configure' 'mingw-w64-wine')
+makedepends=('autoconf' 'mingw-w64-configure' 'mingw-w64-wine')
options=('!strip' '!buildflags' 'staticlibs')
license=('MIT')
url="https://proj.org/"
@@ -15,6 +15,11 @@ sha256sums=('a7026d39c9c80d51565cfc4b33d22631c11e491004e19020b3ff5a0791e1779f')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+prepare() {
+ cd "${srcdir}"/proj-${pkgver}
+ autoreconf -fiv
+}
+
build() {
for _arch in ${_architectures}; do
mkdir -p ${srcdir}/build-${_arch} && pushd ${srcdir}/build-${_arch}
@@ -31,7 +36,7 @@ package() {
cd "${srcdir}/build-${_arch}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/${_arch}/share
- ${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.exe
+ rm -rf "${pkgdir}"/usr/${_arch}/bin/*.exe
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done