aboutsummaryrefslogtreecommitdiffstats
path: root/testing/homer-ui/APKBUILD
blob: c887f7000d62a1b7b79c70f9e0ea0e1e2e2f74ac (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=homer-ui
pkgver=5.0.6
pkgrel=1
pkgdesc="HOMER User-Interface"
url="https://github.com/sipcapture/homer-ui"
arch="noarch"
license="AGPL3"
depends="homer-api php5-ctype php5-mysql php5-gd php5-json"
depends_dev=
makedepends="$depends_dev"
install=
subpackages=
pkggroups="www-data"
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-ui/archive/${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	return 0
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/webapps/homer "$pkgdir"/etc/homer
	mv "$builddir"/* "$pkgdir"/usr/share/webapps/homer
	chown -R :www-data "$pkgdir"/usr/share/webapps/homer/store/dashboard
	chmod 775 "$pkgdir"/usr/share/webapps/homer/store/dashboard
	chmod 664 "$pkgdir"/usr/share/webapps/homer/store/dashboard/*
	mv "$pkgdir"/usr/share/webapps/homer/store/dashboard "$pkgdir"/etc/homer/ || return 1
	ln -s /etc/homer/dashboard "$pkgdir"/usr/share/webapps/homer/store/dashboard || return 1
}

md5sums="5394aef2d72a8624178d08a048db215f  homer-ui-5.0.6.tar.gz"
sha256sums="8fe40079b888eb7e485d2faa369329edd217695a451869411034987f5be1deb2  homer-ui-5.0.6.tar.gz"
sha512sums="14fe5b7064be94c01fdc1a498b635fca23df03310a5ec0fa28b7c395971286749f3b4b1abda56f1c3ebaf6d6fd9c99db317f00dead07efc999e8aa11645406ec  homer-ui-5.0.6.tar.gz"