summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 470f177291a6fe052e2d9aef0c03ee6a7a8281d4 (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
pkgname=mod_auth_cas-git
_gitname=${pkgname%-git}
pkgver=r350.ac7147b
pkgrel=1
pkgdesc="Apache CAS Authentication Module for the JASIG/Apereo CAS Server."
arch=('x86_64')
url="https://github.com/apereo/mod_auth_cas"
license=('Apache License, Version 2.0')
depends=('apache')
makedepends=('git' 'openssl')
source=("git+https://github.com/apereo/mod_auth_cas.git")
md5sums=('SKIP')

pkgver() {
    cd "$_gitname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$_gitname"
    sed -i s/SSL_library_init/OPENSSL_init_ssl/ configure.ac configure
}

build() {
    cd "$_gitname"
    ./configure --prefix=/usr
    make
}

package() {
    cd "$_gitname"
    make DESTDIR="$pkgdir" install
}

# vim: ts=4 sts=4 sw=4 et