summaryrefslogtreecommitdiff
path: root/mutt-nntp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'mutt-nntp/PKGBUILD')
-rw-r--r--mutt-nntp/PKGBUILD61
1 files changed, 36 insertions, 25 deletions
diff --git a/mutt-nntp/PKGBUILD b/mutt-nntp/PKGBUILD
index eb7a870..bdc182c 100644
--- a/mutt-nntp/PKGBUILD
+++ b/mutt-nntp/PKGBUILD
@@ -15,7 +15,7 @@
pkgname=mutt-nntp
pkgver=1.5.23
-pkgrel=1
+pkgrel=2
pkgdesc='Small but very powerful text-based mail client with NNTP patch'
conflicts=("mutt")
url='http://www.mutt.org/'
@@ -24,7 +24,9 @@ backup=('etc/Muttrc')
arch=('i686' 'x86_64')
optdepends=('smtp-forwarder: to send mail')
depends=('gpgme' 'ncurses' 'openssl' 'libsasl' 'gdbm' 'libidn' 'mime-types' 'krb5')
-source=("ftp://ftp.mutt.org/mutt/mutt-${pkgver}.tar.gz"
+# looks like "ftp://ftp.mutt.org/mutt/mutt-${pkgver}.tar.gz" is no longer
+# available, falling back on bitbucket download
+source=("https://bitbucket.org/mutt/mutt/downloads/mutt-${pkgver}.tar.gz"
"http://mutt.org.ua/download/mutt-${pkgver}/patch-${pkgver}.rr.compressed.gz"
"http://mutt.org.ua/download/mutt-${pkgver}/patch-${pkgver}.vvv.initials.gz"
"http://mutt.org.ua/download/mutt-${pkgver}/patch-${pkgver}.vvv.nntp.gz"
@@ -44,44 +46,53 @@ sha512sums=('f1b4a7230253651857f61bd7215cce870a613012f613d4c907d401556083726c8ed
install=install
-build() {
+prepare() {
cd "${srcdir}/mutt-${pkgver}"
+ echo " * applying NNTP patches"
patch -p1 < ../patch-${pkgver}.rr.compressed
patch -p1 < ../patch-${pkgver}.vvv.nntp
patch -p1 < ../patch-${pkgver}.vvv.nntp_ru
patch -p1 < ../patch-${pkgver}.vvv.initials
patch -p1 < ../patch-${pkgver}.vvv.quote
patch -p1 < ../patch-${pkgver}.vvv.ru
+ echo " * invoking autotools"
aclocal -I m4
autoheader
automake --add-missing --foreign
autoconf
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --enable-compressed \
- --enable-gpgme \
- --enable-pop \
- --enable-imap \
- --enable-nntp \
- --enable-smtp \
- --enable-hcache \
- --with-curses=/usr \
- --with-regex \
- --with-gss=/usr \
- --with-ssl=/usr \
- --with-sasl \
+ echo " * invoking configure"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-compressed \
+ --enable-gpgme \
+ --enable-pop \
+ --enable-imap \
+ --enable-nntp \
+ --enable-smtp \
+ --enable-hcache \
+ --with-curses=/usr \
+ --with-regex \
+ --with-gss=/usr \
+ --with-ssl=/usr \
+ --with-sasl \
--with-idn
+}
- make
+build() {
+ cd "${srcdir}/mutt-${pkgver}"
+ echo " * building package ${pkgname} ${pkgver}"
+ make
}
package() {
- cd "${srcdir}/mutt-${pkgver}"
- make DESTDIR="${pkgdir}" install
+ cd "${srcdir}/mutt-${pkgver}"
+ echo " * installing ${pkgname} ${pkgver}"
+ make DESTDIR="${pkgdir}" install
- rm "${pkgdir}"/usr/bin/{flea,muttbug}
- rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
- rm "${pkgdir}"/etc/mime.types{,.dist}
- install -Dm644 contrib/gpg.rc "${pkgdir}"/etc/Muttrc.gpg.dist
+ rm "${pkgdir}"/usr/bin/{flea,muttbug}
+ rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
+ rm "${pkgdir}"/etc/mime.types{,.dist}
+ install -Dm644 contrib/gpg.rc "${pkgdir}"/etc/Muttrc.gpg.dist
}
+