jobextra/jwm/PKGBUILD

60 lines
2.2 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=jwm
pkgver=2.4.2
pkgrel=02
pkgdesc="A lightweight window manager for the X11 Window System"
arch=(x86_64)
url="https://github.com/joewing/jwm"
#url="http://joewing.net/projects/jwm"
#$pkgname::git+https://github.com/joewing/jwm.git
groups=(joborun-pkg-x11)
provides=('jwm')
depends=('libx11' 'libxft' 'libjpeg-turbo' 'libxpm' 'libxinerama' 'libpng' 'cairo' 'librsvg')
backup=('etc/system.jwmrc')
#https://github.com/joewing/jwm/releases/download/v$pkgver/jwm-$pkgver.tar.xz
source=("${url}/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
jwm.desktop)
prepare() {
# this is an Obarun patch - don't waste time building without it - it crashes out after 10" amd throws you back to tty
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|/usr/local/share/|/usr/share/|' contrib/Makefile po/Makefile* example.jwmrc
# locales were broken in 2.4.0
sed -i 's|mkdir_p = @mkdir_p@|mkdir_p = /usr/bin/mkdir -p --|' po/Makefile*
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-fribidi
make
}
package() {
cd $pkgname-$pkgver
make BINDIR="$pkgdir/usr/bin" MANDIR="$pkgdir/usr/share/man" \
DESTDIR="$pkgdir" SYSCONF="$pkgdir/etc" install
install -Dm644 "$srcdir/jwm.desktop" "$pkgdir/usr/share/xsessions/jwm.desktop"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('MIT')
sha256sums=(4e07a21774e9defcdddb3ffaa3e18dfe113dfe168fe0428c5e0da987c95e26e5 # jwm-2.4.2.tar.xz
#f3cc6452d8851d1abd374823ada9bbaa6999cbeadeb6dfedd5f9a116659aa233 # jwm-2.4.1.tar.xz
#1449754f693bdfabbe6318803120722cc65197a73d6bf38120090aee18b16040 # jwm-2.4.0.tar.xz
#745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326 # jwm-2.3.7.tar.xz
# 538186f3b42cc53e2cd9a18fa4ba523cb5e892b6c6fa75e38fb59da725de488c # resize_windows_whatever_the_corner.patch
489327c12bb44c6802144f972411dab7a44a61920c07028fa3d81cfd0ba9fd30) # jwm.desktop