archrelease: copy trunk to community-any
[ArchLinux/community.git] / xca / trunk / PKGBUILD
blobb340fb23d18d3da1ad4c707bd712ffafb7ae91a6
1 # Maintainer: Muflone http://www.muflone.com/contacts/english/
2 # Contributor: Andrea Zucchelli <zukka77@gmail.com>
4 pkgname=xca
5 pkgver=2.4.0
6 pkgrel=3
7 pkgdesc='Graphical user interface to OpenSSL, RSA/DSA public keys, certificates, signing requests and revokation lists'
8 arch=('x86_64')
9 url='https://hohnstaedt.de/xca/'
10 license=('BSD')
11 depends=('qt5-tools' 'libltdl' 'desktop-file-utils' 'gtk-update-icon-cache')
12 source=("https://github.com/chris2511/${pkgname}/releases/download/RELEASE.${pkgver}/${pkgname}-${pkgver}.tar.gz"
13          xca-2.4.0-openssl3.patch::https://github.com/chris2511/xca/commit/f5ac099e948ea354deac75ff9fa09d51453476e1.patch)
14 sha512sums=('e93e2cf9dc48ed43ee9b51e977f825d81ff08835eb4d77fcbe8f9dc8ce31c77c1da879b48c25ab535717542d1fe84faa6e46c410c116edbee02072040c59667c'
15             '094d3057701bccf15fa4371847909718d4c9a19a1900ea4ae09658bf423689af60614449bb1bec161c72b6ec77208608c84ffffbec3530e7c5060224a1f03a2b')
17 prepare() {
18   cd "${pkgname}-${pkgver}"
19   patch -Np1 -i ../xca-2.4.0-openssl3.patch
22 build () {
23   cd "${pkgname}-${pkgver}"
24   ./configure --prefix=/usr --sysconfdir=/etc --with-openssl
25   sed -i  -r 's/(^LDFLAGS.*$)/LDFLAGS='"'"'-lstdc++'"'"'/' Local.mak
28 package() {
29   cd "${pkgname}-${pkgver}"
30   make install DESTDIR="${pkgdir}"
31   install -m 644 -D COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"