aboutsummaryrefslogtreecommitdiff
path: root/repo/ksutils-status-upstream/PKGBUILD
diff options
context:
space:
mode:
authorMagomeYae <[email protected]>2022-03-01 15:19:43 +0800
committerMagomeYae <[email protected]>2022-03-01 15:19:43 +0800
commit219362317f019ad6c6287ec5ba0b40a755265c13 (patch)
tree14399d034396266262b3f8e4657cd9ab8140c829 /repo/ksutils-status-upstream/PKGBUILD
parentc468a99de5ebbe06edd9a4b89414e1d494c8889d (diff)
feat(add-pkg): Add status-upstream
Signed-off-by: MagomeYae <[email protected]>
Diffstat (limited to 'repo/ksutils-status-upstream/PKGBUILD')
-rw-r--r--repo/ksutils-status-upstream/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/repo/ksutils-status-upstream/PKGBUILD b/repo/ksutils-status-upstream/PKGBUILD
new file mode 100644
index 0000000..f1f47b3
--- /dev/null
+++ b/repo/ksutils-status-upstream/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: KunoiSayami <[email protected]>
+
+_basename=status-upstream
+pkgname=ksutils-$_basename
+pkgver=0.7.2
+pkgrel=1
+pkgdesc='A statuspage.io backend'
+arch=('any')
+url=https://github.com/KunoiSayami/status-upstream.rs
+source=(
+ git://github.com/KunoiSayami/status-upstream.rs#tag=v0.7.2
+ "default.toml")
+license=('AGPL3')
+sha512sums=(
+ 'SKIP'
+ 'eaa1070c16547e929115bd22f99330e556dced4576975c268a9ba9460c32ca4f844da72c230d969693e6bd98a55c1a351a3b6cc4af9fc6ac38bf18ed71dbcabb'
+ '131b897edd342eec69706ea6ddf45abf97acac58f76e41ebf1e9f34bca54863f06125e718cfa844e5e1fb18e34865cef60b4da8a9e49517cfdca8980065f09c4')
+makedepends=('cargo' 'git')
+depends=('systemd')
+provides=("$_basename")
+options=(!lto)
+backup=("etc/ksutils/$_basename/default.toml")
+install=$pkgname.install
+
+build() {
+ cd "$_basename.rs"
+ cargo build --profile release-lto
+}
+
+package() {
+ install -dm700 "$pkgdir"/etc/ksutils/$_basename
+ install -dm755 "$pkgdir"/usr/bin
+ install -dm755 "$pkgdir"/usr/lib/systemd/system
+
+ install -m755 "$_basename.rs"/target/release-lto/"$_basename" "$pkgdir"/usr/bin/"$pkgname"
+ install -m600 default.toml "$pkgdir"/etc/ksutils/$_basename/
+ install -m644 "[email protected]" "$pkgdir"/usr/lib/systemd/system/
+}