Add PKGBUILD
This commit is contained in:
parent
294ad801e4
commit
4eff4806b6
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,7 @@
|
||||
blocks.h
|
||||
dwmblocks
|
||||
dwmblocks-pulse-listener
|
||||
dwmblocks-*.pkg.tar.*
|
||||
src/
|
||||
pkg/
|
||||
scripts.tar
|
||||
|
6
Makefile
6
Makefile
@ -38,6 +38,10 @@ install: dwmblocks
|
||||
install -m0755 scripts/* ${DESTDIR}${PREFIX}/bin
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks
|
||||
rm -f ${DESTDIR}${PREFIX}/bin/dwmblocks \
|
||||
${DESTDIR}${PREFIX}/bin/dwmblocks-pulse-listener \
|
||||
${DESTDIR}${PREFIX}/bin/dwmblocks-battery \
|
||||
${DESTDIR}${PREFIX}/bin/dwmblocks-network \
|
||||
${DESTDIR}${PREFIX}/bin/dwmblocks-volume
|
||||
|
||||
.PHONY: all options clean install uninstall
|
||||
|
39
PKGBUILD
Normal file
39
PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
|
||||
|
||||
pkgname=dwmblocks
|
||||
pkgver=1
|
||||
pkgrel=1
|
||||
pkgdesc='Modular status bar for dwm'
|
||||
url='https://git.zander.im/Zander671/dwmblocks/'
|
||||
arch=('x86_64')
|
||||
license=('custom:ISC')
|
||||
depends=('libx11')
|
||||
optdepends=('pulseaudio: for dwmblocks-pulse-listener'
|
||||
'pamixer: for dwmblocks-volume'
|
||||
'network-manager: for dwmblocks-network')
|
||||
DLAGENTS=('tar::/bin/sh -c echo\ %u\ |\ cut\ -c7-\ |\ head\ -c-5\ |\ xargs\ -Isrc\ -n\ 1\ tar\ -cf\ %o\ src')
|
||||
source=('dwmblocks.c'
|
||||
'dwmblocks-pulse-listener.c'
|
||||
'LICENSE'
|
||||
'README.md'
|
||||
'Makefile'
|
||||
'blocks.h'
|
||||
'tar://scripts.tar')
|
||||
sha256sums=('SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
|
||||
build() {
|
||||
cp blocks.h blocks.def.h
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" PREFIX='/usr' install
|
||||
install -Dt "$pkgdir/usr/share/doc/dwmblocks" 'README.md'
|
||||
install -Dt "$pkgdir/usr/share/licenses/dwmblocks" 'LICENSE'
|
||||
}
|
Loading…
Reference in New Issue
Block a user