initial import
This commit is contained in:
61
sawfish/PKGBUILD
Normal file
61
sawfish/PKGBUILD
Normal file
@@ -0,0 +1,61 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=sawfish
|
||||
pkgver=1.11.90
|
||||
_debver=$pkgver
|
||||
_debrel=1.2
|
||||
pkgrel=3
|
||||
pkgdesc="An extensible window manager using a Lisp-based scripting language"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://sawfish.wikia.com/wiki/Main_Page'
|
||||
license=('GPL-2' 'Artistic-2.0')
|
||||
depends=('libsm' 'rep-gtk' 'hicolor-icon-theme' 'gdk-pixbuf-xlib' 'libxtst' 'slock' 'zzz')
|
||||
makedepends=('quilt')
|
||||
optdepends=('lumina-core: support for Lumina-desktop')
|
||||
options=('!libtool')
|
||||
source=("${pkgname}-${pkgver}.tar.xz::https://deb.debian.org/debian/pool/main/s/sawfish/sawfish_${pkgver}.orig.tar.xz"
|
||||
"https://deb.debian.org/debian/pool/main/s/$pkgname/${pkgname}_${_debver}-${_debrel}.debian.tar.xz"
|
||||
"commands.patch")
|
||||
sha512sums=('24735438167c1146e57f82a58876b68b1126d45f237751828ae9603a8eea966058fb6d8fbfddc28e1a96ab774a044b4b9b70b1e299f958b77eb32c987684925e'
|
||||
'6f49321ac85e06f3df1ff7ba1d1023dd165d6110fa33fa360bd53f99e8c0b45130392a0757fc6e2487bcb47aaee477c4d6f0ac5c081b6144c763b10844b795d8'
|
||||
'5be9a64fff3fcd11436c4c32d2207c7e5fd68098034e3e6da92d29b899d04fb8138c41d6f23b1bc35cc2a9bfd0765fb843de5f3867c3ef7309b085cf3b5d9a83')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}_${pkgver}
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
cp -r "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
patch -p1 < "$srcdir"/commands.patch
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}_${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--without-kde4session \
|
||||
--without-kde5session \
|
||||
--without-matesession \
|
||||
--without-xfcesession \
|
||||
--without-gnome2session
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}_${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
# cleanup, deleting unneeded and unsupported parts from package
|
||||
rm -rf "$pkgdir/usr/share/"{gnome,kde4,ksmserver}
|
||||
|
||||
install -Dm644 sawfish.el -t "$pkgdir"/usr/share/emacs/site-lisp
|
||||
install -Dm644 lisp/sawfish/wm/tile/readme.org -t "$pkgdir"/usr/share/doc/$pkgname
|
||||
install -Dm644 COPYING COPYING.SOUNDS -t $pkgdir/usr/share/licenses/$pkgname
|
||||
}
|
||||
38
sawfish/commands.patch
Normal file
38
sawfish/commands.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
--- a/lisp/sawfish/wm/commands/poweroff.jl 2016-01-04 00:25:57.000000000 +0100
|
||||
+++ b/lisp/sawfish/wm/commands/poweroff.jl 2023-10-15 20:46:39.549680242 +0200
|
||||
@@ -36,22 +36,22 @@
|
||||
|
||||
(define-structure-alias poweroff sawfish.wm.commands.poweroff)
|
||||
|
||||
- (defcustom reboot-command "ssd --reboot"
|
||||
+ (defcustom reboot-command "doas reboot"
|
||||
"The command used to reboot the computer."
|
||||
:type string
|
||||
:group (misc apps))
|
||||
|
||||
- (defcustom halt-command "ssd --shutdown"
|
||||
+ (defcustom halt-command "doas poweroff"
|
||||
"The command used to halt the computer."
|
||||
:type string
|
||||
:group (misc apps))
|
||||
|
||||
- (defcustom suspend-command "ssd --suspend"
|
||||
+ (defcustom suspend-command "doas /usr/sbin/zzz"
|
||||
"The command used to suspend the computer."
|
||||
:type string
|
||||
:group (misc apps))
|
||||
|
||||
- (defcustom hibernate-command "ssd --hibernate"
|
||||
+ (defcustom hibernate-command "doas /usr/sbin/zzz"
|
||||
"The command used to hibernate the computer."
|
||||
:type string
|
||||
:group (misc apps))
|
||||
@@ -61,7 +61,7 @@
|
||||
:type string
|
||||
:group (misc apps))
|
||||
|
||||
- (defcustom lockdown-command "ssd --lockdown"
|
||||
+ (defcustom lockdown-command "slock"
|
||||
"The command used to lockdown the display."
|
||||
:type string
|
||||
:group (misc apps))
|
||||
Reference in New Issue
Block a user