]> git.armaanb.net Git - asd-repo.git/blobdiff - core/mutt/build
mutt: bump to 2.1.1 and remove perl dep
[asd-repo.git] / core / mutt / build
index 79a13217eadd8671cf7212676a7cb1f1b6533917..4398e11c565fc72ae1adf1243ce138ab44df9bdd 100755 (executable)
@@ -1,13 +1,21 @@
 #!/bin/sh -e
 
+sed -i 's/doc //g' Makefile.in
+
 ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
     --enable-smtp \
     --with-ssl \
-    --with-sasl
+    --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