arch packaging

This commit is contained in:
Alex Janka 2024-02-12 08:35:27 +11:00
parent 1efbd244cf
commit cad69648a2
2 changed files with 27 additions and 1 deletions

26
package/PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=tesla-auth-callback-watcher
pkgver=0.2.0
pkgrel=1
pkgdesc="server for tesla auth callbacks"
arch=('x86_64' 'aarch64')
url="https://git.alexjanka.com/alex/auth-callback-watcher"
license=('custom')
depends=('gcc-libs')
makedepends=('cargo')
source=("tesla-auth-callback-watcher::git+gitea@git.alexjanka.com:alex/auth-callback-watcher.git")
sha512sums=('SKIP')
build() {
cd "$pkgname"
cargo build --release --locked
}
package() {
cd "$pkgname"
install -Dm755 "target/release/tesla-auth-callback-watcher" "$pkgdir/usr/bin/tesla-auth-callback-watcher"
install -D -m 0644 package/tesla-auth-callback-watcher.service "${pkgdir}/usr/lib/systemd/system/tesla-auth-callback-watcher.service"
}

View file

@ -10,7 +10,7 @@ RestartSec=10s
User=tesla User=tesla
Environment="RUST_LOG=error,warn" Environment="RUST_LOG=error,warn"
Environment="LOG_TIMESTAMP=false" Environment="LOG_TIMESTAMP=false"
ExecStart=/usr/bin/auth-callback-watcher ExecStart=/usr/bin/tesla-auth-callback-watcher
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target