PKGBUILDs/passwordfile/mingw-w64/PKGBUILD

37 lines
1.2 KiB
Bash
Raw Normal View History

2015-08-04 20:04:32 +02:00
# Maintainer: Martchus <martchus@gmx.net>
_name=passwordfile
pkgname=mingw-w64-passwordfile
2015-10-16 22:52:00 +02:00
pkgver=3.0.1
pkgrel=1
arch=('any')
2015-08-26 21:21:22 +02:00
pkgdesc="C++ library to read/write passwords from/to encrypted files (using AES-256-CBC via OpenSSL, mingw-w64)."
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-c++utilities' 'mingw-w64-openssl')
2015-08-11 22:21:14 +02:00
makedepends=('mingw-w64-gcc' 'mingw-w64-qt5-base')
url="https://github.com/Martchus/passwordfile"
source=("passwordfile-${pkgver}.tar.gz::https://github.com/Martchus/passwordfile/archive/v${pkgver}.tar.gz")
_reponame=passwordfile
2015-08-27 22:41:20 +02:00
sha256sums=('SKIP')
options=('staticlibs' '!strip')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# build for each architecture
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
2015-08-26 21:21:22 +02:00
INSTALL_ROOT=$pkgdir/usr/${_arch} ${_arch}-qmake-qt5 ../${_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}
2015-07-18 00:43:03 +02:00
make install
popd
done
}