--- /dev/null
+#!/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
--- /dev/null
+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>