# Contributor: Sören Tempel # Contributor: stef # Maintainer: global pkgname := 'mu' global pkgver := '0.9.11' global pkgrel := '1' global pkgdesc := '"A collection of utilities for indexing and searching Maildirs'" global arch := '"x86 x86_64 ppc64le'" global url := '"http://www.djcbsoftware.nl/code/mu'" global license := '"GPL3'" global depends := '"sqlite'" global makedepends := '"xapian-core-dev gmime-dev sqlite-dev autoconf automake libtool'" global install := ''"" global subpackages := ""$pkgname-doc"" global source := ""$pkgname-$pkgver.tar.gz::https://github.com/djcb/mu/archive/v$pkgver.tar.gz"" global _builddir := ""$srcdir/$pkgname-$pkgver"" proc prepare { cd $_builddir cd toys/mug sed -i 's|MUGDIR|"/usr/share/pixmaps"|g' mug.c } proc build { cd $_builddir # msg2pdf and mug will be built only if webkitgtk is installed autoreconf --force --install ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } proc package { cd $_builddir make DESTDIR=$pkgdir install # if msg2pdf and mug were built, install them # if not, remove the unneeded mug manpage if test -f toys/msg2pdf/msg2pdf { install -m755 toys/msg2pdf/msg2pdf $pkgdir/usr/bin/msg2pdf } if test -f toys/mug/mug { install -m755 toys/mug/mug $pkgdir/usr/bin/mug install -Dm644 toys/mug/mug.svg $pkgdir/usr/share/pixmaps/mug.svg } else { rm $pkgdir/usr/share/man/man1/mug.1 } } global md5sums := '"6b774454b181c9814992e7c9a24b9441 mu-0.9.11.tar.gz'" global sha256sums := '"d01993299a634126bb7431d4390fc3be941f1a22e98a91ec2d55bb4bf0a7c106 mu-0.9.11.tar.gz'" global sha512sums := '"612853ed4a8f841419b0b1927f2c86405f0b442d56166d3252321121b10fc5d2ddb22e46e3e7e1b2802dd61735e440aa84b41ff646935ef492bd4af64ec86778 mu-0.9.11.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(mu)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.9.11)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A collection of utilities for indexing and searching Maildirs"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:arch) op: Equal rhs: {(DQ ("x86 x86_64 ppc64le"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.djcbsoftware.nl/code/mu"))} spids: [28] ) ] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL3))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ (sqlite))} spids:[38])] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("xapian-core-dev gmime-dev sqlite-dev autoconf automake libtool"))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[48])] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [52] ) ] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz::https://github.com/djcb/mu/archive/v") ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [58] ) ] spids: [58] ) (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: [69] ) ] spids: [69] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(cd)} {(toys/mug)}) (C {(sed)} {(-i)} {(SQ <"s|MUGDIR|\"/usr/share/pixmaps\"|g">)} {(mug.c)}) ] spids: [82] ) spids: [78 81] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(autoreconf)} {(--force)} {(--install)}) (AndOr children: [ (C {(./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)} {(--localstatedir) (Lit_Other "=") (/var)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [114] ) spids: [110 113] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") ($ VSub_Name "$pkgdir")} {(install)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-f)} {(toys/msg2pdf/msg2pdf)} {(Lit_Other "]")}) terminator: ) ] action: [ (C {(install)} {(-m755)} {(toys/msg2pdf/msg2pdf)} {($ VSub_Name "$pkgdir") (/usr/bin/msg2pdf)} ) ] spids: [-1 235] ) ] spids: [-1 248] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-f)} {(toys/mug/mug)} {(Lit_Other "]")}) terminator: ) ] action: [ (C {(install)} {(-m755)} {(toys/mug/mug)} {($ VSub_Name "$pkgdir") (/usr/bin/mug)}) (C {(install)} {(-Dm644)} {(toys/mug/mug.svg)} {($ VSub_Name "$pkgdir") (/usr/share/pixmaps/mug.svg)} ) ] spids: [-1 262] ) ] else_action: [(C {(rm)} {($ VSub_Name "$pkgdir") (/usr/share/man/man1/mug.1)})] spids: [285 294] ) ] spids: [198] ) spids: [194 197] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("6b774454b181c9814992e7c9a24b9441 mu-0.9.11.tar.gz"))} spids: [298] ) ] spids: [298] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "d01993299a634126bb7431d4390fc3be941f1a22e98a91ec2d55bb4bf0a7c106 mu-0.9.11.tar.gz" ) ) } spids: [303] ) ] spids: [303] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "612853ed4a8f841419b0b1927f2c86405f0b442d56166d3252321121b10fc5d2ddb22e46e3e7e1b2802dd61735e440aa84b41ff646935ef492bd4af64ec86778 mu-0.9.11.tar.gz" ) ) } spids: [308] ) ] spids: [308] ) ] )