45 lines
1.9 KiB
Bash
45 lines
1.9 KiB
Bash
pkgname=nummi-git
|
|
pkgver=r80.73ce1a2
|
|
pkgrel=1
|
|
pkgdesc="Web-based accounting interface"
|
|
arch=("any")
|
|
url="https://git.edgarpierre.fr/edpibu/nummi"
|
|
license=('AGPL3')
|
|
depends=(
|
|
"gunicorn"
|
|
"python-django"
|
|
"python-matplotlib"
|
|
)
|
|
makedepends=("git")
|
|
optdepends=("postgresql: database")
|
|
backup=("etc/${pkgname%-git}.env")
|
|
source=(
|
|
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
|
|
"${pkgname%-git}.service"
|
|
"${pkgname%-git}.tmpfiles"
|
|
"${pkgname%-git}.sysusers"
|
|
"${pkgname%-git}.nginx"
|
|
"${pkgname%-git}.env"
|
|
)
|
|
b2sums=('SKIP'
|
|
'9e9b62a141bb4594dc203978d5c56dd397ed6c095e6f83fdea07ded2fa46dd2e052aa8f80729a3b612e3773aa487660fcca791079ad4885b825c9c831df61b45'
|
|
'2be5a55e8582a680a17c133c28b43f0a27800acc855c90ae670486b3847b91a47216d15a029670cdc3c55c193371b060cfe3b01bf4f858a64b64da9711067188'
|
|
'3d31754c644e05ec01bc07ebfb89749d563260abb4507297aceaaeebe2f057517ccc3e1c61dbb2eb864779260cd3c7aad01939775525b6bf6461267587dea156'
|
|
'0a4e35264877dc03bcbea11af1e0f5a84bb13b4fb4d84c27a3531b578278ec59f2647cb78d8061e7fe8450dbb06517fb35dc0076a71c0e6e8ec6a20fecd29b0c'
|
|
'5bdc097ab3fa7e8e128d194bfb6c0fefb5528903e2b8765557a82033f8925c1174dbe73007a595e32c5e415cf6f19957c35bbe463c50d2813894c20c8a28a88d')
|
|
|
|
pkgver() {
|
|
cd "$pkgname"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 ${pkgname%-git}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
|
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-git}.conf
|
|
install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-git}.conf
|
|
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-git}.conf
|
|
install -Dm750 ${pkgname%-git}.env -t "${pkgdir}"/etc/
|
|
|
|
cd ${pkgname}/${pkgname%-git}
|
|
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
|
|
}
|