]> git.armaanb.net Git - asd-repo.git/commitdiff
mtm: new package at 1.2.0
authorArmaan Bhojwani <me@armaanb.net>
Fri, 18 Jun 2021 21:41:19 +0000 (17:41 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 18 Jun 2021 21:41:19 +0000 (17:41 -0400)
mtm/build [new file with mode: 0755]
mtm/checksums [new file with mode: 0644]
mtm/depends [new file with mode: 0644]
mtm/patches/musl.patch [new file with mode: 0644]
mtm/sources [new file with mode: 0644]
mtm/version [new file with mode: 0644]

diff --git a/mtm/build b/mtm/build
new file mode 100755 (executable)
index 0000000..443c663
--- /dev/null
+++ b/mtm/build
@@ -0,0 +1,8 @@
+#!/usr/bin/sh -e
+
+patch -p1 < musl.patch
+
+mkdir -p "$1/usr/bin" "$1/usr/man/man1"
+
+make DESTDIR=/usr CFLAGS="-DNCURSESW_INCLUDE_H=\<curses.h\>"
+make DESTDIR="$1/usr/" install
diff --git a/mtm/checksums b/mtm/checksums
new file mode 100644 (file)
index 0000000..920c853
--- /dev/null
@@ -0,0 +1 @@
+68f753f743fcd3d87f269011d4bbd3fed59cfcad710d7c7db98844e3e675c196
diff --git a/mtm/depends b/mtm/depends
new file mode 100644 (file)
index 0000000..6a470ff
--- /dev/null
@@ -0,0 +1 @@
+ncurses
diff --git a/mtm/patches/musl.patch b/mtm/patches/musl.patch
new file mode 100644 (file)
index 0000000..97ab715
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/config.def.h b/config.def.h
+index 248b296..f6ed0fc 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -61,7 +61,7 @@
+ /* The path for the wide-character curses library. */
+ #ifndef NCURSESW_INCLUDE_H
+-    #if defined(__APPLE__) || !defined(__linux__) || defined(__FreeBSD__)
++    #if defined(__APPLE__) || !defined(__linux__) || !defined(linux) || defined(__FreeBSD__)
+         #define NCURSESW_INCLUDE_H <curses.h>
+     #else
+         #define NCURSESW_INCLUDE_H <ncursesw/curses.h>
diff --git a/mtm/sources b/mtm/sources
new file mode 100644 (file)
index 0000000..6075f6c
--- /dev/null
@@ -0,0 +1,2 @@
+https://github.com/deadpixi/mtm/archive/refs/tags/1.2.0.tar.gz
+patches/musl.patch
diff --git a/mtm/version b/mtm/version
new file mode 100644 (file)
index 0000000..8b9a47f
--- /dev/null
@@ -0,0 +1 @@
+1.2.0 1