summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c21f270d12b324763fad92d7e8c698c01250a09 (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
# Maintainer: Javier Torres <javitonino [at] gmail [dot] com>

pkgname=kolab-webadmin
pkgver=3.2.11
pkgrel=1
pkgdesc='Kolab Web Administration Panel'
arch=('any')
license=('GPL3')
makedepends=()
depends=('php-ldap' 'pear-net-ldap3')
url="http://kolab.org"
install=kolab-webadmin.install
#backup=()
source=("https://mirror.kolabenterprise.com/pub/releases/${pkgname}-${pkgver}.tar.gz"
        "apache.patch")
optdepends=('pykolab: configuration tool')

sha256sums=('4e0c56459ba3828b21e671af950fd7bc14d7102cd5f95b7568d2c7302eca8cb0'
            '9f3c03d486a66437fb57ecefc883bd740af6b8b74237b2f819d13ad5df9b034c')

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    
    patch -p1 < "${srcdir}/apache.patch"
}
            
package() {
    mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}"
    cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-${pkgver}/public_html" "${pkgdir}/usr/share/webapps/${pkgname}"
    
    # Exclude external dependecies. Use system version instead
    cd "$srcdir/${pkgname}-${pkgver}"
    find "lib" -type f \( -path "lib/ext/*" -or -exec \
        install -D {} "${pkgdir}/usr/share/webapps/${pkgname}/{}" \; \)
    
    mkdir -p "${pkgdir}/usr/share/doc"
    cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-${pkgver}/doc" "${pkgdir}/usr/share/doc/${pkgname}"
    
    mkdir -p "${pkgdir}/var/log/${pkgname}"
    ln -s "/var/log/${pkgname}" "${pkgdir}/usr/share/webapps/${pkgname}/logs"
    
    mkdir -p "${pkgdir}/var/cache/${pkgname}"  
    ln -s "/var/cache/${pkgname}" "${pkgdir}/usr/share/webapps/${pkgname}/cache"
}