64 lines
1.7 KiB
Bash
64 lines
1.7 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=dwm-git
|
|
pkgname=dwm
|
|
pkgver=6.4.r6.g9f88553
|
|
pkgrel=02
|
|
pkgdesc="A dynamic window manager for X - larger Liberation Fonts"
|
|
url="https://dwm.suckless.org"
|
|
options=(zipman)
|
|
makedepends=('git' 'libx11' 'libxinerama' 'libxft')
|
|
install=dwm.install
|
|
provides=('dwm')
|
|
conflicts=('dwm')
|
|
source=("git+https://git.suckless.org/dwm"
|
|
dwm.desktop
|
|
config.h)
|
|
|
|
pkgver(){
|
|
cd $pkgname
|
|
git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
if [[ -f "$srcdir/config.h" ]]; then
|
|
cp -fv "$srcdir/config.h" config.h
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
depends=('libx11' 'libxinerama' 'libxft' 'ttf-liberation')
|
|
make PREFIX=/usr DESTDIR="$pkgdir" install
|
|
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README"
|
|
install -m644 -D ../dwm.desktop "$pkgdir/usr/share/xsessions/dwm.desktop"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('MIT')
|
|
|
|
sha256sums=(SKIP
|
|
bc36426772e1471d6dd8c8aed91f288e16949e3463a9933fee6390ee0ccd3f81 # dwm.desktop
|
|
4e9eb5ddd222c152815b70a905b31b84ca08f3f15965ad11789ddc17de79b8a1) # config.h
|
|
#
|
|
# OEM Conf 80a93eba0dd32f6668873dd44509a9554640249aaf4e36de00c10384682e54d4) # config.h
|
|
# ./src/dwm/config.h
|
|
|
|
## 07bb0ebb662a5a73192c10c06736333169bc15e6cda53f3bd7f6bdd409ba8421 dwm-6.4.r6.g9f88553-02-x86_64.pkg.tar.lz
|
|
|