jobextra/jwm/PKGBUILD

57 lines
2 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/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
2022-04-24 14:36:57 +02:00
pkgver=2.4.1
pkgrel=01
2022-03-20 13:34:07 +01:00
pkgdesc="A lightweight window manager for the X11 Window System"
arch=(x86_64)
#url="https://github.com/joewing/jwm"
url="https://joewing.net/projects/jwm"
groups=(joborun-pkg-x11)
provides=('jwm')
depends=('libx11' 'libxft' 'libjpeg-turbo' 'libxpm' 'libxinerama' 'libpng' 'cairo' 'librsvg')
backup=('etc/system.jwmrc')
source=("${url}/releases/$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')
2022-04-24 14:36:57 +02:00
sha256sums=(f3cc6452d8851d1abd374823ada9bbaa6999cbeadeb6dfedd5f9a116659aa233 # jwm-2.4.1.tar.xz
#1449754f693bdfabbe6318803120722cc65197a73d6bf38120090aee18b16040 # jwm-2.4.0.tar.xz
2022-03-20 13:34:07 +01:00
#745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326 # jwm-2.3.7.tar.xz
# 538186f3b42cc53e2cd9a18fa4ba523cb5e892b6c6fa75e38fb59da725de488c # resize_windows_whatever_the_corner.patch
489327c12bb44c6802144f972411dab7a44a61920c07028fa3d81cfd0ba9fd30) # jwm.desktop