blob: 1dc0c5f4fbfb1d502f3c72e462658bc1fa0a74a7 (
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
|
# Maintainer: Ashley Bone <ashley DOT bone AT pm DOT me>
pkgname='organizr-git'
_pkgname='organizr'
pkgver=r4018.b8344ba5
pkgrel=1
pkgdesc='HTPC/HomeLab services organizer (git version).'
arch=('any')
url='https://github.com/causefx/Organizr'
license=('GPL-3.0-or-later')
depends=('php-sqlite-interpreter')
optdepends=('fail2ban')
provides=('organizr')
conflicts=('organizr')
install='organizr.install'
source=("${pkgname}::git+https://github.com/causefx/Organizr.git#branch=v2-master" "organizr.install")
sha256sums=('SKIP'
'0eb1fc73141105b51e6ced331057b2f2661d915878c641893c64cd28b861bc45')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -dm 755 "${pkgdir}/usr/share/webapps/${_pkgname}"
install -dm 755 "${pkgdir}/usr/share/webapps/${_pkgname}/data"
install -dm 755 "${pkgdir}/var/lib/${_pkgname}"
cp -r "${srcdir}/${pkgname}/"* "${pkgdir}/usr/share/webapps/${_pkgname}/"
mv "${pkgdir}/usr/share/webapps/${_pkgname}/api" "${pkgdir}/var/lib/${_pkgname}/"
ln -s "/var/lib/${_pkgname}/api" "${pkgdir}/usr/share/webapps/${_pkgname}/api"
mv "${pkgdir}/usr/share/webapps/${_pkgname}/css" "${pkgdir}/var/lib/${_pkgname}/"
ln -s "/var/lib/${_pkgname}/css" "${pkgdir}/usr/share/webapps/${_pkgname}/css"
mv "${pkgdir}/usr/share/webapps/${_pkgname}/plugins" "${pkgdir}/var/lib/${_pkgname}/"
ln -s "/var/lib/${_pkgname}/plugins" "${pkgdir}/usr/share/webapps/${_pkgname}/plugins"
ln -s "/var/lib/${_pkgname}/data/"{cache,favicon,pages,plugins,routes,themes,userTabs} "${pkgdir}/usr/share/webapps/${_pkgname}/data/"
}
|