diff options
author | Shackra Sislock <jorgean@lavabit.com> | 2013-09-08 21:57:29 -0600 |
---|---|---|
committer | Shackra Sislock <jorgean@lavabit.com> | 2013-09-08 21:57:29 -0600 |
commit | f315becffa2ee6ebf396146d9f38ddf42a575d52 (patch) | |
tree | e202037d2a3650541f9e71127f687b066ded0e96 /pcr/qtkeychain/PKGBUILD | |
parent | 9b7260e8a409470302d46dc2c02feabfc933a155 (diff) | |
download | abslibre-f315becffa2ee6ebf396146d9f38ddf42a575d52.tar.gz abslibre-f315becffa2ee6ebf396146d9f38ddf42a575d52.tar.bz2 abslibre-f315becffa2ee6ebf396146d9f38ddf42a575d52.zip |
adding qtkeychain, a owncloud-client dependency
Diffstat (limited to 'pcr/qtkeychain/PKGBUILD')
-rw-r--r-- | pcr/qtkeychain/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pcr/qtkeychain/PKGBUILD b/pcr/qtkeychain/PKGBUILD new file mode 100644 index 000000000..152971751 --- /dev/null +++ b/pcr/qtkeychain/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com> +# Maintainer: Jorge Araya Navarro <shackra@riseup.net> +# Contributor: Teo Mrnjavac <teo@kde.org> +# https://github.com/zizzfizzix/pkgbuilds + +_buildtype="Release" + +pkgname=qtkeychain +pkgver=0.1 +pkgrel=3 +pkgdesc="Provides support for secure credentials storage." +arch=('i686' 'x86_64') +url="https://github.com/frankosterfeld/qtkeychain" +license=('BSD2') +depends=('qt4') +makedepends=('cmake') +source=("${pkgname}-${pkgver}.zip::https://github.com/frankosterfeld/qtkeychain/archive/${pkgver}.zip" 'prefer-qt4.patch') +md5sums=('a1d11a611b27759a531896b57be15947' + 'a2c46e61af02100a6f67487ffeb8a3d0') + +if [[ ! ${_buildtype} == "Release" ]] && [[ ! ${_buildtype} == "release" ]]; then + options=(!strip) +fi + +prepare() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i ${srcdir}/prefer-qt4.patch + + if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi + mkdir ${srcdir}/${pkgname}-${pkgver}-build +} + +build() { + cd ${srcdir}/${pkgname}-${pkgver}-build + cmake -DBUILD_WITH_QT4=on \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \ + -DCMAKE_BUILD_TYPE=${_buildtype} \ + ../${pkgname}-${pkgver} + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver}-build + make DESTDIR=${pkgdir} install + install -D -m644 ${srcdir}/${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |