Update PKGBUILD with version
This commit is contained in:
parent
9a666b6d22
commit
09c8da0650
3 changed files with 20 additions and 20 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,7 +1,3 @@
|
||||||
/env*
|
/env*
|
||||||
__pycache__
|
__pycache__
|
||||||
*.pkg.tar.zst
|
|
||||||
/nummi-git/
|
|
||||||
/pkg/
|
|
||||||
/src/
|
|
||||||
/media
|
/media
|
||||||
|
|
3
pkgbuild/.gitignore
vendored
Normal file
3
pkgbuild/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/*.pkg.tar.zst
|
||||||
|
/src/
|
||||||
|
/nummi/
|
|
@ -1,5 +1,5 @@
|
||||||
pkgname=nummi-git
|
pkgname=nummi
|
||||||
pkgver=r298.2c95379
|
pkgver=v0.9
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Web-based accounting interface"
|
pkgdesc="Web-based accounting interface"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
|
@ -13,13 +13,14 @@ depends=(
|
||||||
)
|
)
|
||||||
makedepends=("git")
|
makedepends=("git")
|
||||||
optdepends=("postgresql: database")
|
optdepends=("postgresql: database")
|
||||||
backup=("etc/${pkgname%-git}/config.toml")
|
backup=("etc/${pkgname}/config.toml")
|
||||||
|
_tag=c29a01ed5821787bfcef7afbdb100604feab97d0
|
||||||
source=(
|
source=(
|
||||||
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi"
|
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi?signed#tag=$_tag"
|
||||||
"${pkgname%-git}.service"
|
"${pkgname}.service"
|
||||||
"${pkgname%-git}.tmpfiles"
|
"${pkgname}.tmpfiles"
|
||||||
"${pkgname%-git}.sysusers"
|
"${pkgname}.sysusers"
|
||||||
"${pkgname%-git}.nginx"
|
"${pkgname}.nginx"
|
||||||
"config.toml"
|
"config.toml"
|
||||||
)
|
)
|
||||||
b2sums=('SKIP'
|
b2sums=('SKIP'
|
||||||
|
@ -31,16 +32,16 @@ b2sums=('SKIP'
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
git describe
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -Dm644 ${pkgname%-git}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
||||||
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-git}.conf
|
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
||||||
install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-git}.conf
|
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
||||||
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-git}.conf
|
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf
|
||||||
install -Dm750 -o nummi -g nummi config.toml -t "${pkgdir}"/etc/${pkgname%-git}/
|
install -Dm600 -o nummi -g nummi config.toml -t "${pkgdir}"/etc/${pkgname}/
|
||||||
|
|
||||||
cd ${pkgname}/${pkgname%-git}
|
cd ${pkgname}/${pkgname}
|
||||||
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
|
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue