auth-callback-watcher/package/PKGBUILD

27 lines
765 B
Bash
Raw Normal View History

2024-02-12 08:35:27 +11:00
# Maintainer: Alex Janka <alex@alexjanka.com>
pkgname=tesla-auth-callback-watcher
2024-02-12 11:56:26 +11:00
pkgver=0.3.0
2024-02-12 08:35:27 +11:00
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')
2024-02-12 08:40:59 +11:00
source=("auth-callback-watcher::git+https://git.alexjanka.com/alex/auth-callback-watcher")
2024-02-12 08:35:27 +11:00
sha512sums=('SKIP')
build() {
2024-02-12 08:40:59 +11:00
cd "auth-callback-watcher"
2024-02-12 08:35:27 +11:00
cargo build --release --locked
}
package() {
2024-02-12 08:40:59 +11:00
cd "auth-callback-watcher"
2024-02-12 08:35:27 +11:00
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"
}