# Maintainer: Leonardo Arena global pkgname := 'perl-test2-plugin-nowarnings' global _pkgreal := '"Test2-Plugin-NoWarnings'" global pkgver := '0.04' global pkgrel := '0' global pkgdesc := '"Test2::Plugin::NoWarnings perl module'" global url := '"http://search.cpan.org'" global arch := '"noarch'" global license := '"GPL or Artistic 2'" global depends := '"perl-ipc-run3 perl-test2-suite perl-test-simple'" global makedepends := '"perl-dev'" global install := ''"" global subpackages := ""$pkgname-doc"" global source := ""http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"" global _builddir := ""$srcdir"/$_pkgreal-$pkgver" proc prepare { var i = '' cd $_builddir for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make && make test || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } global md5sums := '"e26bb1795ee9a0d382063977026cf795 Test2-Plugin-NoWarnings-0.04.tar.gz'" global sha256sums := '"115be2623661b9acfde6c2f6e7bce260394296b8eda7431228388b37aeed61aa Test2-Plugin-NoWarnings-0.04.tar.gz'" global sha512sums := '"47f57c5bd5bf78821265c520f8b5736bae4fb254cbef41e270f22b3c50429615e313ef38dfb74201b8b98a85f05c5f4a3e40a7eeb7bc2d9d9937ff081d34465d Test2-Plugin-NoWarnings-0.04.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgname) op: Equal rhs: {(perl-test2-plugin-nowarnings)} spids: [3] ) ] spids: [3] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_pkgreal) op: Equal rhs: {(DQ (Test2-Plugin-NoWarnings))} spids: [6] ) ] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.04)} spids:[11])] spids: [11] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[14])] spids: [14] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Test2::Plugin::NoWarnings perl module"))} spids: [17] ) ] spids: [17] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://search.cpan.org"))} spids: [22] ) ] spids: [22] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[27])] spids: [27] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:license) op: Equal rhs: {(DQ ("GPL or Artistic 2"))} spids: [32] ) ] spids: [32] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("perl-ipc-run3 perl-test2-suite perl-test-simple"))} spids: [37] ) ] spids: [37] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(DQ (perl-dev))} spids:[42])] spids: [42] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[47])] spids: [47] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [51] ) ] spids: [51] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/") ($ VSub_Name "$_pkgreal") (-) ($ 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 "$_pkgreal") (-) ($ VSub_Name "$pkgver")} spids: [67] ) ] spids: [67] ) (FuncDef name: prepare body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[85])] spids: [83] ) (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [114 116 140 -1] ) ] spids: [107 111 143] ) ] spids: [104 146] ) spids: [100 102] ) ] spids: [80] ) spids: [76 79] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (AndOr children: [ (SimpleCommand words: [{(perl)} {(Makefile.PL)} {(Lit_VarLike "INSTALLDIRS=") (vendor)}] more_env: [(env_pair name:PERL_MM_USE_DEFAULT val:{(1)} spids:[165])] ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(make)}) (AndOr children: [ (C {(make)} {(test)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] op_id: Op_DAmp ) ] spids: [155] ) spids: [151 154] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (AndOr children: [ (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(find)} {(DQ ($ VSub_Name "$pkgdir"))} {(EscapedLiteralPart token:)} {(-name)} {(perllocal.pod)} {(-o)} {(-name)} {(.packlist)} {(EscapedLiteralPart token:)} {(-delete)} ) ] spids: [203] ) spids: [199 202] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("e26bb1795ee9a0d382063977026cf795 Test2-Plugin-NoWarnings-0.04.tar.gz"))} spids: [254] ) ] spids: [254] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "115be2623661b9acfde6c2f6e7bce260394296b8eda7431228388b37aeed61aa Test2-Plugin-NoWarnings-0.04.tar.gz" ) ) } spids: [259] ) ] spids: [259] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "47f57c5bd5bf78821265c520f8b5736bae4fb254cbef41e270f22b3c50429615e313ef38dfb74201b8b98a85f05c5f4a3e40a7eeb7bc2d9d9937ff081d34465d Test2-Plugin-NoWarnings-0.04.tar.gz" ) ) } spids: [264] ) ] spids: [264] ) ] )