2015-08-04 20:04:32 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2015-06-24 23:12:08 +02:00
|
|
|
_name=passwordfile
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=passwordfile
|
2015-06-24 23:12:08 +02:00
|
|
|
pkgname=mingw-w64-passwordfile
|
2015-10-16 22:52:00 +02:00
|
|
|
pkgver=3.0.1
|
|
|
|
pkgrel=1
|
2015-06-24 23:12:08 +02:00
|
|
|
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)."
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
|
|
|
depends=('mingw-w64-crt' 'mingw-w64-c++utilities' 'mingw-w64-openssl')
|
2015-12-06 19:17:57 +01:00
|
|
|
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake')
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
|
|
source=("passwordfile-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2015-12-06 19:17:57 +01:00
|
|
|
sha256sums=('959176b21b45c8435c7c87d501c263dc4d8088e861b8659294448f6c77768ebb')
|
|
|
|
options=(!buildflags staticlibs !strip !emptydirs)
|
2015-06-24 23:12:08 +02:00
|
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
# build utilities for each architecture
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
mkdir -p build-${_arch} && pushd build-${_arch}
|
|
|
|
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr/${_arch}" ../
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
pushd build-${_arch}
|
|
|
|
make install-mingw-w64-strip
|
|
|
|
popd
|
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|