35 lines
1,010 B
Bash
35 lines
1,010 B
Bash
pkgname=nummi
|
|
pkgver=0.1.0
|
|
pkgrel=10
|
|
pkgdesc="Web-based accounting interface"
|
|
arch=("any")
|
|
url="https://git.edgarpierre.fr/edpibu/nummi"
|
|
license=("AGPL3")
|
|
depends=(
|
|
"gunicorn"
|
|
"python-django"
|
|
)
|
|
optdepends=("postgresql: database")
|
|
|
|
source=(
|
|
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
|
|
"${pkgname}.service"
|
|
"${pkgname}.tmpfiles"
|
|
"${pkgname}.sysusers"
|
|
"${pkgname}.nginx"
|
|
)
|
|
|
|
package() {
|
|
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
|
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
|
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
|
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf
|
|
install -dm644 "${pkgdir}"/srv/${pkgname}
|
|
|
|
cd ${pkgname}/${pkgname}
|
|
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
|
|
|
|
cd "${pkgdir}/usr/share/webapps/${pkgname}"
|
|
python manage.py migrate
|
|
python manage.py collectstatic
|
|
}
|