From 9710933d32679ab3c9c3b0ea4cb2a649553b8c9a Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 23 May 2023 01:11:56 -0700 Subject: [PATCH] Add PKGBUILD --- .gitignore | 3 +++ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore index b41245e..69f90c7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ dwm config.h config.mk +dwm-*.pkg.tar.* +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ab7de0a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Alexander Rosenberg + +pkgname=dwm +pkgver=6.4 +pkgrel=1 +pkgdesc="Simple dynamic window manager for X from Suckless" +url='https://dwm.suckless.org' +arch=('x86_64') +license=('MIT') +depends=('libx11') +source=('dwm.c' + 'drw.h' + 'drw.c' + 'util.h' + 'util.c' + 'transient.c' + 'dwm.1' + 'LICENSE' + 'README.md' + 'Makefile' + 'config.h' + 'config.mk') +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + +pkgver(){ + grep -E '^VERSION' config.mk | cut -c11- +} + +build() { + cp config.h config.def.h + cp config.mk config.def.mk + make +} + +package() { + make DESTDIR="$pkgdir" PREFIX='/usr' install + install -Dt "$pkgdir/usr/share/doc/dwm" 'README.md' + install -Dt "$pkgdir/usr/share/licenses/dwm" 'LICENSE' +}