jobcomm/cwm-git/PKGBUILD

48 lines
1.3 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-git
pkgver=20231020
pkgrel=02
pkgdesc="Fork of calmwm, a clean and lightweight window manager (git version)"
url="https://github.com/leahneukirchen/cwm"
depends=('libxft' 'libxrandr' 'libxinerama')
makedepends=('git' 'pkg-config')
conflicts=('cwm')
provides=('cwm')
source=("$pkgname::git+https://github.com/leahneukirchen/cwm.git#branch=linux"
'cwm.desktop')
pkgver() {
cd $pkgname
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
build() {
cd $pkgname
make
}
package() {
cd $pkgname
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=('custom')
sha256sums=(SKIP
083d54f4e80b4a96c1f749379a9277696de0c65e030c284eeb14e9671f9aa7f3) # cwm.desktop
## 61778767f5a575e97a4aad4067e7aa7e85b22c86c1a1981ac489c1567d40fa60 cwm-git-20231020-02-x86_64.pkg.tar.lz