blob: 8cce24b1364b7e3fc39dadd460f250e51c9e0fee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
# Maintainer: Jorge Araya Navarro <shackra@riseup.net>
# Contributor (Arch): 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
}
|