diff options
author | Martchus | 2019-07-20 16:55:42 +0200 |
---|---|---|
committer | Martchus | 2019-07-20 16:55:42 +0200 |
commit | ee813dd87180b13e9e39566672aa2b26209ada32 (patch) | |
tree | c2c509a0b1b44ac089dc9252b3a7a542f7097c20 | |
download | aur-ee813dd87180b13e9e39566672aa2b26209ada32.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..65c38c3b6029 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = passwordfile-git + pkgdesc = C++ library to read/write passwords from/to encrypted files using AES-256-CBC via OpenSSL + pkgver = 45.2b28fbcc66 + pkgrel = 1 + url = https://github.com/Martchus/passwordfile + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = GPL + checkdepends = cppunit + makedepends = cmake + makedepends = git + depends = c++utilities-git + depends = openssl + optdepends = passwordfile-doc: API documentation + conflicts = passwordfile + source = passwordfile::git://github.com/Martchus/passwordfile.git + sha256sums = SKIP + +pkgname = passwordfile-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..85f1d8045b14 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Martchus <martchus@gmx.net> + +# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where +# you also find the URL of a binary repository. + +_reponame=passwordfile +pkgname=passwordfile-git +_name=${pkgname%-git} +pkgver=45.2b28fbcc66 +pkgrel=1 +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +pkgdesc='C++ library to read/write passwords from/to encrypted files using AES-256-CBC via OpenSSL' +license=('GPL') +depends=('c++utilities-git' 'openssl') +optdepends=("$_name-doc: API documentation") +makedepends=('cmake' 'git') +checkdepends=('cppunit') +#provides=("${_name}") +conflicts=("${_name}") +install= +url="https://github.com/Martchus/${_reponame}" +source=("${_reponame}::${MARTCHUS_GIT_URL_PREFIX:-git://github.com/Martchus}/${_reponame}.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}" + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}" + cmake \ + -DCMAKE_BUILD_TYPE:STRING='Release' \ + -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + . + make +} + +check() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}" + make check +} + +package() { + cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}" + make DESTDIR="${pkgdir}" install +} |