From aefdd9cca144810f4b012b0a0ec5fdd4576df4d8 Mon Sep 17 00:00:00 2001 From: monosans Date: Sun, 3 Apr 2022 12:56:32 +0300 Subject: Add PKGBUILD and update Arch installation guide --- PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f1f73b8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +_pkgname=dwm +pkgname=$_pkgname-luke-git +pkgver=6.2.r1888.0ac09e0 +pkgrel=1 +pkgdesc="Luke's build of dwm" +url=https://github.com/LukeSmithxyz/dwm +arch=(i686 x86_64) +license=(MIT) +makedepends=(git) +depends=(freetype2 libx11 libxft) +optdepends=( + 'libxft-bgra: if dwm crashes when displaying emojis' + 'libxft-bgra-git: if dwm crashes when displaying emojis' + 'dmenu: program launcher' + 'st: terminal emulator') +provides=($_pkgname) +conflicts=($_pkgname) +source=(git+https://github.com/LukeSmithxyz/dwm) +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + echo "$(awk '/^VERSION =/ {print $3}' config.mk)".r"$(git rev-list --count HEAD)"."$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$_pkgname" + echo "CPPFLAGS+=${CPPFLAGS}" >> config.mk + echo "CFLAGS+=${CFLAGS}" >> config.mk + echo "LDFLAGS+=${LDFLAGS}" >> config.mk + # to use a custom config.h, place it in the package directory + if [[ -f ${SRCDEST}/config.h ]]; then + cp "${SRCDEST}/config.h" . + fi +} + +build() { + cd "$_pkgname" + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd "$_pkgname" + make PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +# vim:set ts=4 sw=4 noet: -- cgit v1.2.3 From f7418a285fab75b83103cc183cdb1deab9d2532f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 26 May 2022 12:19:10 -0400 Subject: tweaks --- PKGBUILD | 3 +-- README.md | 34 ++++------------------------------ 2 files changed, 5 insertions(+), 32 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index f1f73b8..ba89488 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ _pkgname=dwm -pkgname=$_pkgname-luke-git +pkgname=$_pkgname-larbs-git pkgver=6.2.r1888.0ac09e0 pkgrel=1 pkgdesc="Luke's build of dwm" @@ -44,4 +44,3 @@ package() { make PREFIX=/usr DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim:set ts=4 sw=4 noet: diff --git a/README.md b/README.md index 9dd07c5..5ab5f4c 100644 --- a/README.md +++ b/README.md @@ -23,34 +23,6 @@ I haven't kept `man dwm`/`dwm.1` updated though. PRs welcome on that, lol. - [vanitygaps](https://dwm.suckless.org/patches/vanitygaps/): Gaps allowed across all layouts. - [swallow patch](https://dwm.suckless.org/patches/swallow/): if a program run from a terminal would make it inoperable, it temporarily takes its place to save space. -## Installation on Arch Linux based distributions - -### Download the source code - -```bash -git clone https://github.com/LukeSmithxyz/dwm.git -cd dwm -``` - -### Configure - -To use a custom `config.h`, place it in the package directory. - -### Compile and install - -To compile dwm you need to install the `base-devel` package group if you haven't done it previously. - -If you have `paru` installed: - -```bash -paru -Ui -``` - -Otherwise: - -```bash -makepkg -cirs -``` ## Installation for newbs @@ -60,6 +32,8 @@ cd dwm sudo make install ``` -## Please install `libxft-bgra`! +There is also a `PKGBUILD` usable on distributions with pacman. Run `makepkg -si` instead of `sudo make install`. + +### You must also install `libxft-bgra`! -This build of dwm does not block color emoji in the status/info bar, so you must install [libxft-bgra](https://aur.archlinux.org/packages/libxft-bgra/) from the AUR, which fixes a libxft color emoji rendering problem, otherwise dwm will crash upon trying to render one. Hopefully this fix will be in all libxft soon enough. +This build of dwm does not block color emoji in the status/info bar, so you must install [libxft-bgra](https://aur.archlinux.org/packages/libxft-bgra/), which fixes a libxft color emoji rendering problem, otherwise dwm will crash upon trying to render one. Hopefully this fix will be in all libxft soon enough. -- cgit v1.2.3