Add PKGBUILD
This commit is contained in:
parent
ddc175317c
commit
9710933d32
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,3 +2,6 @@
|
||||
dwm
|
||||
config.h
|
||||
config.mk
|
||||
dwm-*.pkg.tar.*
|
||||
src/
|
||||
pkg/
|
||||
|
50
PKGBUILD
Normal file
50
PKGBUILD
Normal file
@ -0,0 +1,50 @@
|
||||
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
|
||||
|
||||
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'
|
||||
}
|
Loading…
Reference in New Issue
Block a user