From d3c91e81bd66883383cdf86f1ab91b7892dac25b Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 23 May 2023 01:41:13 -0700 Subject: [PATCH] Add PKGBUILD --- .gitignore | 3 +++ PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++++++++ README => README.md | 0 3 files changed, 61 insertions(+) create mode 100644 PKGBUILD rename README => README.md (100%) diff --git a/.gitignore b/.gitignore index 747693a..aa5610c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ stest aliases config.h config.mk +src/ +pkg/ +dmenu-*.pkg.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cc9d4bb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Alexander Rosenberg + +pkgname=dmenu +pkgver=5.2 +pkgrel=1 +pkgdesc='Dynamic menu for X, originally designed for dwm' +url='https://tools.suckless.org/dmenu/' +arch=('x86_64') +license=('MIT') +depends=('libx11') +source=('dmenu.c' + 'arg.h' + 'drw.h' + 'drw.c' + 'util.h' + 'util.c' + 'dmenu.1' + 'stest.c' + 'stest.1' + 'dmenu_run' + 'dmenu_path' + 'LICENSE' + 'README.md' + 'Makefile' + 'config.h' + 'config.mk') +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + '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 -m 0644 -Dt "$pkgdir/usr/share/doc/dmenu" 'README.md' + install -m 0644 -Dt "$pkgdir/usr/share/licenses/dmenu" 'LICENSE' +} diff --git a/README b/README.md similarity index 100% rename from README rename to README.md