summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2018-01-19 19:16:02 +0100
committerMichel Zou2018-01-19 19:16:02 +0100
commit2df96aa2fd1989500b87eacb9a5ca662e30c7e33 (patch)
tree4de03425eac9f9b2802ed271cc3767e6b0fa85ad /PKGBUILD
parent7d217dcd77e73503482d3ed25f400f60899f2c8c (diff)
downloadaur-mingw-w64-qwt-qt4.tar.gz
fix includes
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 13 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 64c244a2d3e..435455a1f04 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=mingw-w64-qwt-qt4
pkgver=6.1.3
-pkgrel=1
+pkgrel=2
pkgdesc="Qt Widgets for Technical Applications (mingw-w64, qwt-qt4.dll only)"
arch=('any')
license=('custom:qwt')
@@ -37,7 +37,7 @@ build() {
# Make install locations consistent with Arch's native Qwt:
sed -i 's|$${QWT_INSTALL_PREFIX}/doc|$${QWT_INSTALL_PREFIX}/share/doc/qwt|' qwtconfig.pri
- sed -i 's|$${QWT_INSTALL_PREFIX}/include|$${QWT_INSTALL_PREFIX}/include/qwt|' qwtconfig.pri
+ sed -i 's|$${QWT_INSTALL_PREFIX}/include|$${QWT_INSTALL_PREFIX}/include/qwt-qt4|' qwtconfig.pri
# No need for docs:
sed -i "s|= target doc|= target|" src/src.pro
@@ -55,12 +55,20 @@ build() {
}
package() {
+
for _target in ${_architectures}; do
+
cd "${srcdir}/${pkgname}-${pkgver}-build-${_target}/qwt-${pkgver}"
- install -d "$pkgdir"/usr/${_target}/{lib,bin}
- install -m 644 lib/libqwt-qt4.dll.a "$pkgdir"/usr/${_target}/lib/
- install -m 755 lib/qwt-qt4.dll "$pkgdir"/usr/${_target}/bin
+
+ make INSTALL_ROOT=${pkgdir} QTDIR=/usr/${_target}/ install
+
+ cd "${pkgdir}/usr/${_target}"
+
+ # Move DLLs from lib to bin
+ mkdir -p bin
+ mv lib/*.dll bin/
${_target}-strip --strip-unneeded "$pkgdir"/usr/${_target}/bin/*.dll
${_target}-strip -g "$pkgdir"/usr/${_target}/lib/*.a
+ rm -r "$pkgdir"/usr/${_target}/share "$pkgdir"/usr/${_target}/features
done
}