# Contributor: Sören Tempel # Contributor: Andrew Manison # Maintainer: Natanael Copa global pkgname := 'mutt' global pkgver := '1.9.0' global pkgrel := '0' global pkgdesc := '"a small but very powerful text-mode email client'" global url := '"http://www.mutt.org'" global arch := '"all'" global license := '"GPL'" global makedepends := '"cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev libidn-dev ncurses-dev libressl-dev perl'" global options := '"suid !check'" global subpackages := ""$pkgname-doc $pkgname-lang"" global source := ""https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz"" global builddir := ""$srcdir"/$pkgname-$pkgver" proc build { cd $builddir env ISPELL=/usr/bin/hunspell \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-imap \ --enable-pop \ --enable-smtp \ --enable-hcache \ --enable-gpgme \ --enable-sidebar \ --with-curses \ --with-mailpath=/var/spool/mail \ --with-docdir=/usr/share/doc/$pkgname \ --without-included-gettext \ --with-ssl \ --with-sasl make } proc package { cd $builddir make DESTDIR="$pkgdir" install rm "$pkgdir"/etc/*.dist \ "$pkgdir"/etc/mime.types \ "$pkgdir"/usr/bin/muttbug \ "$pkgdir"/usr/bin/flea # Don't tamper with the global configuration file. # Many options set in the global config cannot be # overwritten in the users configuration file. # Example: Resetting colors isn't possible. install -Dm644 contrib/gpg.rc \ "$pkgdir"/etc/Muttrc.gpg.dist } global sha512sums := '"d68b256ba73d19e1fa4594c2f30c5e89f6ce98b34701498cb7179f7f70a9bda4f08eb063e476ef01a7ad9d61cfc12c2528fa3605047dab5ffadd98b955de8b03 mutt-1.9.0.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(mutt)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.9.0)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("a small but very powerful text-mode email client"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.mutt.org"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev\n") ("\tlibidn-dev ncurses-dev libressl-dev perl") ) } spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ ("suid !check"))} spids:[44])] spids: [44] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-doc ") ($ VSub_Name "$pkgname") (-lang))} spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://bitbucket.org/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$pkgname") (/downloads/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [57] ) ] spids: [57] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver")} spids: [70] ) ] spids: [70] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (SimpleCommand words: [ {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--infodir) (Lit_Other "=") (/usr/share/info)} {(--enable-imap)} {(--enable-pop)} {(--enable-smtp)} {(--enable-hcache)} {(--enable-gpgme)} {(--enable-sidebar)} {(--with-curses)} {(--with-mailpath) (Lit_Other "=") (/var/spool/mail)} {(--with-docdir) (Lit_Other "=") (/usr/share/doc/) ($ VSub_Name "$pkgname")} {(--without-included-gettext)} {(--with-ssl)} {(--with-sasl)} ] more_env: [(env_pair name:ISPELL val:{(/usr/bin/hunspell)} spids:[94])] ) (C {(make)}) ] spids: [84] ) spids: [80 83] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(rm)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/) (Lit_Other "*") (.dist)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/mime.types)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/muttbug)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/flea)} ) (C {(install)} {(-Dm644)} {(contrib/gpg.rc)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/Muttrc.gpg.dist)} ) ] spids: [200] ) spids: [196 199] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "d68b256ba73d19e1fa4594c2f30c5e89f6ce98b34701498cb7179f7f70a9bda4f08eb063e476ef01a7ad9d61cfc12c2528fa3605047dab5ffadd98b955de8b03 mutt-1.9.0.tar.gz" ) ) } spids: [285] ) ] spids: [285] ) ] )