summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f90a79797e4509422ca3f7d1e6eb2e285d9745b (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
# Maintainer:  Marcin Wieczorek <marcin@marcin.co>
# Contributor: Michael Rasmussen <michael@michaelsnet.us>
# Contributor: Matt Kemp <matt@mattikus.com>
# Contributor: David Zaragoza <david@zaragoza.com.ve>

pkgname=mod_gnutls
pkgver=0.11.0
pkgrel=1
pkgdesc="Apache module for the GnuTLS library"
arch=('i686' 'x86_64')
url="https://mod.gnutls.org/"
license=('Apache')
depends=('apache' 'gnutls')
optdepends=('aprmemcache')
install=${pkgname}.install
source=("http://mod.gnutls.org/downloads/${pkgname}-${pkgver}.tar.bz2"{,.asc})
sha256sums=('559658f56321f05c28760baf54b74e7f92974c6bc7131e3a30ab9812c4d40a3b'
            'SKIP')

#Thomas Klute <thomas2.klute@uni-dortmund.de>
#Fiona Klute <fiona.klute@gmx.de>
validpgpkeys=('B471C74C72A7F6EC9FFA46E361459C5287768C53'
              'E4D3138FE2D9F2FA8152FD91EEA726CE21235A58')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    autoreconf -fiv
    ./configure --with-apxs=/usr/bin/apxs
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    sed -ir 's/@${APXS_BIN} -i -n gnutls mod_gnutls.so/mkdir -p $(DESTDIR)$(AP_LIBEXECDIR)\n\t@${APXS_BIN} -i -S LIBEXECDIR=$(DESTDIR)$(AP_LIBEXECDIR) -n gnutls mod_gnutls.so/' src/Makefile
    make DESTDIR="${pkgdir}/" install
    libtool --finish "${pkgdir}/usr/lib/httpd/modules"
}