Add PKGBUILD

This commit is contained in:
Alexander Rosenberg 2023-05-23 01:41:13 -07:00
parent 6150073949
commit f0f47ce40a
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
3 changed files with 61 additions and 0 deletions

3
.gitignore vendored
View File

@ -4,3 +4,6 @@ stest
aliases aliases
config.h config.h
config.mk config.mk
src/
pkg/
dmenu-*.pkg.tar.*

58
PKGBUILD Normal file
View File

@ -0,0 +1,58 @@
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
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 -Dt "$pkgdir/usr/share/doc/dmenu" 'README.md'
install -Dt "$pkgdir/usr/share/licenses/dmenu" 'LICENSE'
}

View File