# Contributor: # Maintainer: Natanael Copa global pkgname := 'asterisk-audio-konf' global _basever := '0' global _gitver := '101026' global pkgver := "$(_basever)_git$(_gitver)" global pkgrel := '2' global pkgdesc := '"A fork of AppKonference focused entirely on audio conferencing'" global url := '"http://github.com/jthomerson/AsteriskAudioKonf/'" global arch := ''"" global license := '"GPL2'" global depends := ''"" global makedepends := '"asterisk-dev'" global install := ''"" global subpackages := ''"" global _snapfile := ""$pkgname-$pkgver.tar.bz2"" global source := ""http://dev.alpinelinux.org/~tteras/$_snapfile"" global _gitver := '101026' global _giturl := '"git://github.com/jthomerson/AsteriskAudioKonf.git'" global _builddir := ""$srcdir"/$pkgname/konference" proc snapshot { global _gitver := $[date +%y%m%d] global pkgver := "$(_basever)_git$_gitver" global _snapfile := ""$pkgname-$pkgver.tar.bz2"" if test -d "$SRCDEST"/$pkgname { cd "$SRCDEST"/$pkgname git pull --rebase || return 1 } else { cd $SRCDEST git clone $_giturl $pkgname } cd $SRCDEST tar -jcf $_snapfile $pkgname global pkgrel := '0' sed -i -e "s/^_gitver=.*/_gitver=$(_gitver)/" \ -e "s/^pkgrel=.*/pkgrel=$pkgrel/" \ "$startdir"/APKBUILD checksum } proc prepare { cd $_builddir # Enable Speex16 support sed -e '/CPPFLAGS += -DAC_USE_SPEEX16/s/^\# *//' -i Makefile #for i in "$srcdir"/*.patch; do # patch -p1 -i "$i" || return 1 #done } proc build { cd $_builddir make || return 1 } proc package { cd $_builddir make INSTALL_PREFIX="$pkgdir" install } global md5sums := '"9f560cae3afc363282db60e0d69c6643 asterisk-audio-konf-0_git101026.tar.bz2'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(asterisk-audio-konf)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_basever) op:Equal rhs:{(0)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_gitver) op:Equal rhs:{(101026)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgver) op: Equal rhs: {(${ VSub_Name _basever) (_git) (${ VSub_Name _gitver)} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(2)} spids:[24])] spids: [24] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A fork of AppKonference focused entirely on audio conferencing"))} spids: [27] ) ] spids: [27] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://github.com/jthomerson/AsteriskAudioKonf/"))} spids: [32] ) ] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ )} spids:[37])] spids: [37] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[41])] spids: [41] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[46])] spids: [46] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ (asterisk-dev))} spids: [50] ) ] spids: [50] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[55])] spids: [55] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:subpackages) op:Equal rhs:{(DQ )} spids:[59])] spids: [59] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_snapfile) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.bz2))} spids: [63] ) ] spids: [63] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: {(DQ ("http://dev.alpinelinux.org/~tteras/") ($ VSub_Name "$_snapfile"))} spids: [71] ) ] spids: [71] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_gitver) op:Equal rhs:{(101026)} spids:[78])] spids: [78] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_giturl) op: Equal rhs: {(DQ ("git://github.com/jthomerson/AsteriskAudioKonf.git"))} spids: [81] ) ] spids: [81] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (/konference)} spids: [87] ) ] spids: [87] ) (FuncDef name: snapshot body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_gitver) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(date)} {(Lit_Other "+") (Lit_Other "%") (y) (Lit_Other "%") (m) (Lit_Other "%") (d) } ) ] ) left_token: spids: [103 113] ) } spids: [102] ) ] spids: [102] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgver) op: Equal rhs: {(${ VSub_Name _basever) (_git) ($ VSub_Name "$_gitver")} spids: [116] ) ] spids: [116] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_snapfile) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.bz2))} spids: [124] ) ] spids: [124] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-d)} {(DQ ($ VSub_Name "$SRCDEST")) (/) ($ VSub_Name "$pkgname")} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(cd)} {(DQ ($ VSub_Name "$SRCDEST")) (/) ($ VSub_Name "$pkgname")}) (AndOr children: [ (C {(git)} {(pull)} {(--rebase)}) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [-1 149] ) ] else_action: [ (C {(cd)} {(DQ ($ VSub_Name "$SRCDEST"))}) (C {(git)} {(clone)} {($ VSub_Name "$_giturl")} {($ VSub_Name "$pkgname")}) ] spids: [174 193] ) (C {(cd)} {(DQ ($ VSub_Name "$SRCDEST"))}) (C {(tar)} {(-jcf)} {($ VSub_Name "$_snapfile")} {($ VSub_Name "$pkgname")}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[214])] spids: [214] ) (C {(sed)} {(-i)} {(-e)} {(DQ ("s/^_gitver=.*/_gitver=") (${ VSub_Name _gitver) (/))} {(-e)} {(DQ ("s/^pkgrel=.*/pkgrel=") ($ VSub_Name "$pkgrel") (/))} {(DQ ($ VSub_Name "$startdir")) (/APKBUILD)} ) (C {(checksum)}) ] spids: [99] ) spids: [95 98] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(sed)} {(-e)} {(SQ <"/CPPFLAGS += -DAC_USE_SPEEX16/s/^\\# *//">)} {(-i)} {(Makefile)}) ] spids: [259] ) spids: [255 258] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [306] ) spids: [302 305] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(make)} {(Lit_VarLike "INSTALL_PREFIX=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) ] spids: [331] ) spids: [327 330] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("9f560cae3afc363282db60e0d69c6643 asterisk-audio-konf-0_git101026.tar.bz2"))} spids: [353] ) ] spids: [353] ) ] )