diff options
author | monosans <hsyqixco@protonmail.com> | 2022-04-03 12:56:32 +0300 |
---|---|---|
committer | monosans <hsyqixco@protonmail.com> | 2022-05-26 17:02:19 +0300 |
commit | aefdd9cca144810f4b012b0a0ec5fdd4576df4d8 (patch) | |
tree | c9e7ed41584fa8c326ef8e5ce61f2fe51b782d50 /PKGBUILD | |
parent | 0ac09e05a0696a65685a6f6577d18f8ce9a7f5a0 (diff) |
Add PKGBUILD and update Arch installation guide
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
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: |