40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
_name=c++utilities
|
|
pkgname=mingw-w64-c++utilities
|
|
pkgver=1.0.6
|
|
pkgrel=2
|
|
arch=('any')
|
|
pkgdesc="Common C++ classes and routines used by my applications such
|
|
as argument parser, IO and conversion utilities (mingw-w64)."
|
|
license=('GPL')
|
|
depends=('mingw-w64-crt' 'mingw-w64-qt5-base')
|
|
makedepends=('mingw-w64-gcc')
|
|
url="https://github.com/Martchus/cpp-utilities"
|
|
source=("c++utilities-${pkgver}.tar.gz::https://github.com/Martchus/cpp-utilities/archive/v${pkgver}.tar.gz")
|
|
_reponame=cpp-utilities
|
|
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
|
|
options=('staticlibs' '!strip')
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
|
|
# head end
|
|
|
|
build() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
# build for each architecture
|
|
for _arch in ${_architectures}; do
|
|
mkdir -p build-${_arch} && pushd build-${_arch}
|
|
INSTALL_ROOT=$pkgdir/usr/${_arch} ${_arch}-qmake-qt5 -r ../${_name}.pro CONFIG+=mingw-w64-install CONFIG+=mingw-w64-manualstrip-dll CONFIG+=mingw-w64-noversion
|
|
make
|
|
popd
|
|
done
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
for _arch in ${_architectures}; do
|
|
pushd build-${_arch}
|
|
make install
|
|
popd
|
|
done
|
|
}
|