]> git.armaanb.net Git - asd-repo.git/blobdiff - junk/mutt/build
The comeback
[asd-repo.git] / junk / mutt / build
diff --git a/junk/mutt/build b/junk/mutt/build
new file mode 100755 (executable)
index 0000000..4398e11
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+sed -i 's/doc //g' Makefile.in
+
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --enable-smtp \
+    --with-ssl \
+    --with-sasl \
+    --disable-doc
+
+make
+make DESTDIR="$1" install
+
+rm -f "$1/etc/mime.types" "$1/etc/Mutt*"
+
+for i in *.1 *.5; do
+    section="$(printf "$i" | cut -d '.' -f 3)"
+    install -Dm644 "$i" "$1/usr/share/man/man$section/$i"
+done