summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--PKGBUILD24
2 files changed, 25 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 659ae87..124efaa 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ output: dwmblocks.o
dwmblocks.o: dwmblocks.c config.h
gcc -c -lX11 dwmblocks.c
clean:
- rm -f *.o *.gch dwmblocks
+ rm -rf *.o *.gch dwmblocks *.zst src pkg
install: output
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..f530109
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+pkgname=dwmblocks-custom-git
+_pkgname=dwmblocks
+pkgver=1.0
+pkgrel=1
+pkgdesc="dwm status bar"
+url="https://git.vasthecat.ru/dwmblocks.git"
+arch=('i686' 'x86_64')
+provides=('dwmblocks')
+conflicts=('dwmblocks')
+source=('config.h' 'dwmblocks.c' 'LICENSE' 'Makefile')
+md5sums=(
+ 'b32a66e121b5f8643b87a4b288af5c55'
+ 'd0be83080b876500d4dab40371e79237'
+ 'b234ee4d69f5fce4486a80fdaf4a4263'
+ 'c2e8f80f0fb857daedab59c9c3b65636'
+)
+
+build() {
+ make
+}
+
+package() {
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}