2015-08-26 21:21:22 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-09-06 21:53:25 +02:00
|
|
|
_name=passwordfile
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=passwordfile
|
2015-08-26 21:21:22 +02:00
|
|
|
pkgname=passwordfile-git
|
2015-09-06 21:53:25 +02:00
|
|
|
pkgver=20.bcefbb6
|
2016-04-20 00:32:19 +02:00
|
|
|
pkgrel=1
|
2015-08-26 21:21:22 +02:00
|
|
|
arch=('i686' 'x86_64')
|
2016-08-09 01:55:11 +02:00
|
|
|
pkgdesc="C++ library to read/write passwords from/to encrypted files using AES-256-CBC via OpenSSL"
|
2015-08-26 21:21:22 +02:00
|
|
|
license=('GPL')
|
|
|
|
depends=('c++utilities' 'openssl')
|
2015-12-06 19:17:57 +01:00
|
|
|
makedepends=('cmake' 'git')
|
2015-08-26 21:21:22 +02:00
|
|
|
provides=('passwordfile')
|
|
|
|
conflicts=('passwordfile')
|
|
|
|
install=
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2016-02-27 21:08:28 +01:00
|
|
|
source=("${_reponame}::git://github.com/Martchus/${_reponame}.git")
|
2015-08-27 22:41:20 +02:00
|
|
|
sha256sums=('SKIP')
|
2015-08-26 21:21:22 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-02-27 21:08:28 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
2016-04-20 00:32:19 +02:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"
|
2015-12-24 16:50:30 +01:00
|
|
|
make
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2016-02-27 21:08:28 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
2016-04-20 00:32:19 +02:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|