mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/kabmat: new aport
This commit is contained in:
parent
d4d21cc699
commit
34962499ff
29
testing/kabmat/APKBUILD
Normal file
29
testing/kabmat/APKBUILD
Normal file
@ -0,0 +1,29 @@
|
||||
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
||||
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
||||
pkgname=kabmat
|
||||
pkgver=2.7.0
|
||||
pkgrel=0
|
||||
pkgdesc="TUI program for managing kanban boards with vim-like keybindings"
|
||||
url="https://github.com/PlankCipher/kabmat"
|
||||
arch="all"
|
||||
license="GPL-3.0-only"
|
||||
makedepends="ncurses-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/PlankCipher/kabmat/archive/v$pkgver.tar.gz
|
||||
makefile.patch
|
||||
"
|
||||
options="!check" # No test defined upstream
|
||||
|
||||
build() {
|
||||
# extremely broken project that passes 'cflags' to cxx and also ignores everything by default
|
||||
make CFLAGS="-std=c++17 $CFLAGS $CXXFLAGS $LDFLAGS"
|
||||
}
|
||||
|
||||
package() {
|
||||
make PREFIX="/usr" DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
22bf8fde34d705ceac71ccb54c0f9a5a10be7716b49aecea38b70de595c2350ffbe3126cc6a2c12cd651f74be51783c262c7ec0bc94810872aa470305898e76f kabmat-2.7.0.tar.gz
|
||||
9c7909c857fa9b69ae1e4399c51e9b56a3fd4ad4191ae8b9131e2c70c141aa9fc4e180736402d5392ee553f906b26dbb56cf376084361ee64d07d411f2d6d5e9 makefile.patch
|
||||
"
|
43
testing/kabmat/makefile.patch
Normal file
43
testing/kabmat/makefile.patch
Normal file
@ -0,0 +1,43 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 611b1c3..4f796dd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,7 +1,18 @@
|
||||
+# Common prefix for installation directories, following GNU conventions.
|
||||
+# See https://www.gnu.org/prep/standards/html_node/Directory-Variables.html for details.
|
||||
+
|
||||
+# Installation prefix
|
||||
+PREFIX = /usr/local
|
||||
+DATAROOTDIR = $(PREFIX)/share
|
||||
+
|
||||
+# Where to put the executable.
|
||||
+BINDIR = $(PREFIX)/bin
|
||||
+# Where to put the manual pages.
|
||||
+MANDIR = $(DATAROOTDIR)/man
|
||||
+
|
||||
TARGET = kabmat
|
||||
SRC_DIR = src
|
||||
BUILD_DIR = bin
|
||||
-INSTALL_DIR = /usr/bin/
|
||||
DATA_DIR = ~/.local/share/kabmat
|
||||
|
||||
CFLAGS = -std=c++17 -Wall -Wextra
|
||||
@@ -31,7 +42,14 @@ clean:
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
- $(MAKE)
|
||||
- sudo cp ./$(TARGET) $(INSTALL_DIR)
|
||||
- sudo mkdir -p /usr/local/man/man1
|
||||
- sudo cp ./doc/kabmat.1 /usr/local/man/man1/
|
||||
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
|
||||
+ cp ./$(TARGET) $(DESTDIR)$(BINDIR)
|
||||
+ chmod 0755 $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
+ cp ./doc/kabmat.1 $(DESTDIR)$(MANDIR)/man1
|
||||
+ chmod 0644 $(DESTDIR)$(MANDIR)/man1/kabmat.1
|
||||
+ $(MAKE) clean
|
||||
+
|
||||
+.PHONY: uninstall
|
||||
+uninstall:
|
||||
+ rm $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
+ rm $(DESTDIR)$(MANDIR)/man1/kabmat.1
|
Loading…
Reference in New Issue
Block a user