aboutsummaryrefslogtreecommitdiffstats
path: root/community/homer-ui/APKBUILD
blob: 32e03e2f12a7ad0dfab3efbf86aa0f3c53efd1a3 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=homer-ui
pkgver=5.0.6
pkgrel=4
pkgdesc="HOMER User-Interface"
url="https://github.com/sipcapture/homer-ui"
arch="noarch"
license="AGPL-3.0"
depends="homer-api"
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
	fonts.tar.xz
	0001-css-separate-file-for-fonts.patch
	0002-css-fonts-expand.patch
	0003-use-local-fonts.patch
	"
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
}

sha512sums="14fe5b7064be94c01fdc1a498b635fca23df03310a5ec0fa28b7c395971286749f3b4b1abda56f1c3ebaf6d6fd9c99db317f00dead07efc999e8aa11645406ec  homer-ui-5.0.6.tar.gz
2955418bf55314f8fc32fd9cff8b248e05b0dd1d2057bb4864db02c9a6b890c27a8391826986d3710a40424402866c3b77b888fcdee2d09a14c7330967ecf2e2  fonts.tar.xz
52e0412f0d4ecbddc3d8cea89edb9212457d3a6b4f1f4034952f5e5bbccc74158ccb3e457470ea5ace39a5e4561d21104765fea87538bfc0c3c8bf9c6535e537  0001-css-separate-file-for-fonts.patch
871cbb5e8efd254910dce6820941104b1a695082cb2ccc23bb4bdac5b6d36bc61b788ca5bd6a363fa73461ff85c75fe9e7e511776fc727b1049710559c23edfd  0002-css-fonts-expand.patch
1d06d50899af4b2ca208d41503b46f220343445ff48cda2486afdae33016cb2f60b72f78a1e70df58dd1342bdbd117666fced3784b1156341eae79d7f8dedf84  0003-use-local-fonts.patch"