jobcomm/cwm/PKGBUILD

55 lines
2.1 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/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cwm
pkgver=7.4
pkgrel=04
pkgdesc="Fork of calmwm, a clean and lightweight window manager"
url="https://github.com/leahneukirchen/cwm"
## 4b20167e333bd8b54dab18c4510c74283a714c6f refs/tags/v7.4
## ^b46a21f3c55c6029d751d3cde40f3fb46e58168e
depends=('libxft' 'libxrandr' 'libxinerama')
changelog=cwm.changelog
source=("https://leahneukirchen.org/releases/cwm-${pkgver}.tar.gz"{,.asc}
# 'fix-overlapping-menu-items.diff::https://github.com/leahneukirchen/cwm/commit/4a6128d5e461515b87da0dabf31dd1c7288b26db.diff'
# 'fix-semi-transparency.diff::https://github.com/leahneukirchen/cwm/commit/9eb763ab8781610b67df44b9914a018d32dfe1fe.diff'
'cwm.desktop')
prepare() {
cd $pkgname-$pkgver
# patch -u -p 1 -l <../fix-overlapping-menu-items.diff
# https://marc.info/?l=openbsd-misc&m=167896796615081&w=2
# patch -u -p 1 -l <../fix-semi-transparency.diff
}
build() {
cd $pkgname-$pkgver
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" PREFIX=/usr install
install -Dm644 "${srcdir}/cwm.desktop" "${pkgdir}/usr/share/xsessions/cwm.desktop"
install -Dm644 <(sed -n '/Copyright/,/PERFORMANCE/p' <calmwm.c) "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('BSD')
validpgpkeys=('E6F6848A1B95EE313CF5B7EE95FF633C90A8F025') # Leah Neukirchen <leah@vuxu.org>
sha256sums=(b4f275143c8c716d7df1cfbb230f888c72aa861708e144d1749858f1cc6fcac0 # cwm-7.4.tar.gz
5ace4c9615c9ebc1063d7ec365da19b1801b1d59f32da7f86041de56c8fa5b6e # cwm-7.4.tar.gz.asc
# a2ec87bb407cbe5adeff60700af7fea264a83f92c7baebdefe85fc3246fb5d50 # fix-overlapping-menu-items.diff
# 28055e84b5de69b9a4913ca4ac7576ca05925baf7190c8e1f34afed7c86f92b6 # fix-semi-transparency.diff
8dc947993fbf294d6f41ba2e0d4234b2321c536a75be1395f6a772cd4aa3f379) # cwm.desktop