blob: 1d3aa0450644e51013342dd666b93439252203c3 (
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
|
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
# Contributor: Marius Lindvall <marius {cat} varden {dog} info>
pkgname=hauk-server
pkgver=1.6.2
pkgrel=1
pkgdesc="PHP backend for Hauk, a self-hosted real-time location sharing app"
arch=('any')
url="https://github.com/bilde2910/Hauk"
license=('Apache')
depends=('php>=7')
optdepends=('php-memcached: memcached storage support'
'php-redis: Redis storage support')
conflicts=()
install="${pkgname}.install"
source=("https://github.com/bilde2910/Hauk/archive/v${pkgver}.tar.gz"
"apache-example.conf"
"nginx-example.conf")
sha256sums=('2c0e53b1f573815a16d87d9edd56144e67819eba97567cc1dcc57d6dc0d43b5d'
'e20c609c08732ca47f198e7a247e2b3c95ffd66d3d71d00fe0351a6ebbf74915'
'9777798bf9ffd4ec65fcb0dfcc2aab26d9288a6ae9e7cec410c210b5e001b440')
options=(!strip)
backup=("etc/hauk/config.php")
package() {
mkdir -p "${pkgdir}/etc/hauk"
mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}"
mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
cp -r ./Hauk-${pkgver}/backend-php/* "${pkgdir}/usr/share/webapps/${pkgname}"
cp -r ./Hauk-${pkgver}/frontend/* "${pkgdir}/usr/share/webapps/${pkgname}"
install -Dm644 ./Hauk-${pkgver}/backend-php/include/config-sample.php "${pkgdir}/etc/hauk/config.php"
install -Dm644 ./apache-example.conf "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 ./nginx-example.conf "${pkgdir}/usr/share/doc/${pkgname}"
}
|