Add telegram-bot-calendar

This commit is contained in:
2022-10-19 10:34:53 +02:00
parent 56b7352326
commit 150629bd4b
3 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
# Maintainer: Manuel Vögele <aur@manuel-voegele.de>
pkgname=telegram-calendar-bot-git
pkgver=0
pkgrel=1
arch=('any')
makedepends=(
'git'
'cargo'
)
source=(
'git+ssh://gitea@git.ccn.li/manuel/telegram-bot-calendar.git'
'telegram-bot-calendar.service'
'sysusers.d'
)
sha256sums=('SKIP'
'5e92e1126fa198ce65713fd10219f2d2ad8e87cb916a1b6cc0d5c38171debc29'
'128feac33a68097960d3690827c816777482a2ec5b5947a0bcd7a25bdbb93b54')
pkgver() {
cd "${srcdir}/telegram-bot-calendar"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/telegram-bot-calendar"
cargo build --release
}
package() {
install -Dm755 "${srcdir}/telegram-bot-calendar/target/release/calendar-bot" "${pkgdir}/usr/bin/calendar-bot"
install -Dm644 "${srcdir}/telegram-bot-calendar.service" "${pkgdir}/usr/lib/systemd/system/telegram-bot-calendar.service"
install -Dm644 "${srcdir}/sysusers.d" "${pkgdir}/usr/lib/sysusers.d/telegram-bot-calendar.conf"
}