jobextra/jwm/PKGBUILD

59 lines
1.9 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2022-10-27 19:04:02 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:34:07 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
2022-10-27 19:04:02 +02:00
# Website : https://pozol.eu
2022-03-20 13:34:07 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=jwm
2022-10-27 19:04:02 +02:00
pkgver=2.4.3
pkgrel=01
2022-03-20 13:34:07 +01:00
pkgdesc="A lightweight window manager for the X11 Window System"
arch=(x86_64)
2022-05-31 21:23:35 +02:00
url="https://github.com/joewing/jwm"
2022-10-27 19:04:02 +02:00
#url="https://joewing.net/projects/jwm"
2022-05-31 21:23:35 +02:00
#$pkgname::git+https://github.com/joewing/jwm.git
2022-03-20 13:34:07 +01:00
groups=(joborun-pkg-x11)
provides=('jwm')
depends=('libx11' 'libxft' 'libjpeg-turbo' 'libxpm' 'libxinerama' 'libpng' 'cairo' 'librsvg')
backup=('etc/system.jwmrc')
2022-05-31 21:23:35 +02:00
#https://github.com/joewing/jwm/releases/download/v$pkgver/jwm-$pkgver.tar.xz
source=("${url}/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
2022-03-20 13:34:07 +01:00
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-10-27 19:04:02 +02:00
sha256sums=(ee3b4ee0c452ef31fcb9303ab50aaf496cf5bdf7b5f1fdc9a1251b7175ca67ab # jwm-2.4.3.tar.xz
2022-03-20 13:34:07 +01:00
489327c12bb44c6802144f972411dab7a44a61920c07028fa3d81cfd0ba9fd30) # jwm.desktop
2022-07-11 20:32:11 +02:00
2022-10-27 19:04:02 +02:00