Package Details: sdorfehs-git 1670.fb30a72-1

Git Clone URL: https://aur.archlinux.org/sdorfehs-git.git (read-only, click to copy)
Package Base: sdorfehs-git
Description: sdorfehs is a tiling window manager descended from ratpoison.
Upstream URL: https://github.com/jcs/sdorfehs
Licenses: GPL2
Submitter: shassard
Maintainer: shassard
Last Packager: shassard
Votes: 1
Popularity: 0.000001
First Submitted: 2023-01-19 02:24 (UTC)
Last Updated: 2023-01-19 02:24 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

mutt commented on 2024-08-23 18:04 (UTC)

Hi, this package currently installs to /usr/local, which is frowned upon in packaging (see Arch package guidelines)

Special care needs to be taken with the make install invocation to set the prefix to /usr and install man pages at /usr/share/man/man1

Below is a patch for this.

From d94502004adcea4f9547157732e46c3289e36a0a Mon Sep 17 00:00:00 2001
From: Lobo Torres <lobo@quiltro.org>
Date: Fri, 23 Aug 2024 14:03:45 -0400
Subject: [PATCH] fix install location

---
 .SRCINFO | 2 +-
 PKGBUILD | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 2833f34..c1eb328 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = sdorfehs-git
    pkgdesc = sdorfehs is a tiling window manager descended from ratpoison.
-   pkgver = 1670.fb30a72
+   pkgver = 1686.cf6164d
    pkgrel = 1
    url = https://github.com/jcs/sdorfehs
    arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 71659fe..6d6c8cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Stephen Hassard <steve@hassard.net>
 pkgname="sdorfehs-git"
 _pkgname="${pkgname%%-*}"
-pkgver=1670.fb30a72
+pkgver=1686.cf6164d
 pkgrel=1
 pkgdesc="sdorfehs is a tiling window manager descended from ratpoison."
 arch=('x86_64')
@@ -14,7 +14,7 @@ b2sums=('SKIP'
         '6e2774bf0c0618684c95bfb29c83b3cf2db8a4e389fb40c035d09ea987e6ddc5f98cbc0d2f5f3f3afc1db70a5ee8a175e94751e2b9fcee6fb37bb949eab8db7d')

 pkgver() {
-  cd "$srcdir/${_pkgname}"
+  cd "${srcdir}/${_pkgname}"

   printf "%s.%s" \
     $(git rev-list --count HEAD) \
@@ -27,7 +27,7 @@ build() {
 }

 package() {
-  cd "$srcdir/${_pkgname}"
-  make DESTDIR="$pkgdir/" install
+  cd "${srcdir}/${_pkgname}"
+  make PREFIX="/usr" DESTDIR="$pkgdir/" MANDIR="${pkgdir}/usr/share/man/man1" install
   install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/etc/X11/sessions/${_pkgname}.desktop"
 }
-- 
2.46.0