summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-web/PKGBUILD
blob: 8dfb50077d6e078b2fc529c7bdce4f3d8e22d390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=linhes-web
pkgver=9.0.0
pkgrel=5
conflicts=()
pkgdesc="LinHES local website"
depends=('lighttpd' 'php-cgi')
makedepends=()
arch=('x86_64')
license=('GPL')
source=('linhes-web.conf' 'website.tar.gz')
sha256sums=('e39ce02bde5eb3d359f1286b41751aa715961cf2b2d9a1243c7f01d20ed9c993'
            '37124fccf3fe1a69a52a62ffc88a6cc748eaefde9725e8fa315cc2b29f68cf8b')

package() {
    mkdir -p $pkgdir/data/srv/httpd/htdocs/
    cp -rp $srcdir/website/contents/* $pkgdir/data/srv/httpd/htdocs
    chmod -R 755 $pkgdir/data/srv/httpd/htdocs

    #lighttpd files
    install -Dm644 $srcdir/linhes-web.conf $pkgdir/etc/lighttpd/conf.d/linhes-web.conf
}