Package Details: sway-systemd-git 0.3.0.r2.g68c8ce7-2

Git Clone URL: https://aur.archlinux.org/sway-systemd-git.git (read-only, click to copy)
Package Base: sway-systemd-git
Description: Systemd integration for Sway session
Upstream URL: https://github.com/alebastr/sway-systemd
Keywords: cgroup cgroups environment systemd
Licenses: custom:MIT
Conflicts: sway-services-git, sway-systemd
Provides: sway-systemd
Submitter: Scrumplex
Maintainer: fmauNeko
Last Packager: fmauNeko
Votes: 7
Popularity: 0.62
First Submitted: 2021-04-25 19:31 (UTC)
Last Updated: 2023-06-07 15:12 (UTC)

Latest Comments

itaranto commented on 2023-05-21 22:26 (UTC) (edited on 2023-05-21 22:29 (UTC) by itaranto)

Hey! Here's a patch which contains:

  • Fix version generation, currently it wasn't working. I used the suggestion from PKGBUILD-vcs.proto.
  • Remove unnecessary whitespace.
  • Replace $var with ${var}, which is safer.
diff --git a/PKGBUILD b/PKGBUILD
index 09cf197..63275dd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,34 +14,27 @@ conflicts=("${pkgname%-git}" "sway-services-git")
 source=('sway-systemd::git+https://github.com/alebastr/sway-systemd.git')
 sha512sums=('SKIP')

-
 pkgver() {
-    cd "$srcdir/${pkgname%-git}"
-
-    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+    cd "${srcdir}/${pkgname%-git}"
+    printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
 }

 build() {
-
     arch-meson \
         -Dautostart=true \
         -Dcgroups=enabled \
         -Dlocale1=true \
-        "$srcdir/${pkgname%-git}" build
+        "${srcdir}/${pkgname%-git}" build
     ninja -C build
 }

 check() {
-
     ninja -C build test
 }

 package() {
-
-    DESTDIR="$pkgdir" ninja -C build install
-
-    cd "$srcdir/${pkgname%-git}"
-
-    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
-    install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
+    DESTDIR="${pkgdir}" ninja -C build install
+    cd "${srcdir}/${pkgname%-git}"
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
 }

Scrumplex commented on 2021-06-30 19:37 (UTC)

snakeroot: Thanks for the heads up! I have added python-tenacity as a dependency.

snakeroot commented on 2021-06-30 19:28 (UTC)

Note that after commit 71d697e2b0196c8561ab82a5f891f0466f9a898c sway-systemd depends on python-tenacity which is available in community.