diff options
author | Colin Reeder | 2024-01-27 17:37:46 -0700 |
---|---|---|
committer | Colin Reeder | 2024-01-27 17:37:46 -0700 |
commit | de72b2aa41f0ff7544bc01fe42246eefcb5c270b (patch) | |
tree | f2fa3e856eee69e8a0c954ca536720559f5121d8 | |
download | aur-shoved.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | shoved.service | 9 |
4 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1584909f6c2a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = shoved + pkgdesc = A push notification daemon + pkgver = 0.1.0 + pkgrel = 1 + arch = x86_64 + arch = aarch64 + license = GPL-3.0-only + makedepends = cargo + source = https://git.sr.ht/~vpzom/shoved/archive/v0.1.0.tar.gz + source = shoved.service + sha256sums = 98dcec2ea1aee02d1d1f7151f463c89d4d5823fd71e700679451418f7c15ed61 + sha256sums = SKIP + +pkgname = shoved diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9267f0a6a7fa --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.pkg.* +*.tar.gz +/pkg +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d4d76c2b5f62 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=shoved +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A push notification daemon" +arch=("x86_64" "aarch64") +license=("GPL-3.0-only") +makedepends=("cargo") +source=("https://git.sr.ht/~vpzom/shoved/archive/v0.1.0.tar.gz" "shoved.service") +sha256sums=('98dcec2ea1aee02d1d1f7151f463c89d4d5823fd71e700679451418f7c15ed61' 'SKIP') + +prepare() { + cd $pkgname-v$pkgver + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd $pkgname-v$pkgver + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + install -Dm644 -t "$pkgdir/usr/lib/systemd/user/" shoved.service + + cd $pkgname-v$pkgver + install -Dm0755 -t "$pkgdir/usr/bin/" target/release/shoved target/release/shoved-register +} diff --git a/shoved.service b/shoved.service new file mode 100644 index 000000000000..6eaf7eea2264 --- /dev/null +++ b/shoved.service @@ -0,0 +1,9 @@ +[Unit] +Description=shoved Push Notifications Service + +[Service] +ExecStart=/usr/bin/shoved +Restart=always + +[Install] +WantedBy=default.target |