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