Skip to content

Instantly share code, notes, and snippets.

@runiq
Created May 30, 2012 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runiq/2838757 to your computer and use it in GitHub Desktop.
Save runiq/2838757 to your computer and use it in GitHub Desktop.
mutt-kz-git PKGBUILD with fix-notmuch_database_open fix applied
# Contributor: boyska <piuttosto@logorroici.org>
pkgname=mutt-kz-git
pkgver=20120228
pkgrel=1
pkgdesc="A small but very powerful text-based mail client + integration with notmuch"
url="https://github.com/karelzak/mutt-kz"
arch=(i686 x86_64)
license=('GPL')
depends=('openssl>=0.9.8e' 'gdbm' 'mime-types' 'zlib' 'libsasl' 'gpgme' 'ncurses' 'notmuch')
makedepends=('git' 'gnupg' 'libxslt')
conflicts=('mutt')
provides=('mutt')
options=('!strip')
_gitroot=git://github.com/pioto/mutt-kz.git
_gitname=muttkz
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" -b "fix-notmuch_database_open" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" -b "fix-notmuch_database_open" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
#
# BUILD HERE
#
./prepare \
--prefix=/usr \
--sysconfdir=/etc \
--enable-debug \
--enable-hcache \
--enable-gpgme \
--enable-imap \
--enable-pgp \
--enable-pop \
--enable-smtp \
--with-idn \
--with-sasl \
--with-ssl=/usr \
--with-regex
./configure --enable-notmuch
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install
rm -f ${pkgdir}/etc/mime.types*
install -Dm644 contrib/gpg.rc ${pkgdir}/etc/Muttrc.gpg.dist
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment