Update pkgbuild

This commit is contained in:
Edgar P. Burkhart 2022-05-21 18:29:30 +02:00
parent c778a5fe32
commit 8c3f573811
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 16 additions and 12 deletions

View File

@ -12,24 +12,28 @@ depends=(
makedepends=('git') makedepends=('git')
optdepends=("postgresql: database") optdepends=("postgresql: database")
source=( source=(
'${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git' "${pkgname%-git}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
'${pkgname}.service' "${pkgname%-git}.service"
'${pkgname}.tmpfiles' "${pkgname%-git}.tmpfiles"
'${pkgname}.sysusers' "${pkgname%-git}.sysusers"
'${pkgname}.nginx' "${pkgname%-git}.nginx"
) )
md5sums=('SKIP') md5sums=('SKIP'
'e584076aa2c41057634ed162ecf4a2b0'
'3c3caef26d924fb8f6bbce83743aaaac'
'0210532a05e4b99593236524715063e2'
'905cf1239a55c82a2fc60eceda71da6e')
pkgver() { pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
package() { package() {
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ install -Dm644 ${pkgname%-git}.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-VCS}.conf
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-VCS}.conf
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-VCS}.conf
cd ${pkgname}/${pkgname} cd ${pkgname%-git}/${pkgname%-VCS}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \; find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
} }