# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs # Maintainer: Timo Teräs global pkgname := 'perl-time-timegm' global _pkgreal := 'Time-timegm' global pkgver := '0.01' global pkgrel := '0' global pkgdesc := '"a UTC version of C'" global url := '"http://search.cpan.org/dist/Time-timegm/'" global arch := '"all'" global license := '"GPL PerlArtistic'" global cpandepends := ''"" global cpanmakedepends := ''"" global cpancheckdepends := ''"" global depends := ""$cpandepends perl-extutils-cchecker"" global makedepends := ""perl-dev perl-module-build $cpanmakedepends"" global checkdepends := $cpancheckdepends global subpackages := ""$pkgname-doc"" global source := ""http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"" global builddir := ""$srcdir/$_pkgreal-$pkgver"" proc prepare { default_prepare || return 1 cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] perl Build.PL installdirs=vendor || return 1 } proc build { cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] ./Build } proc package { cd $builddir ./Build install destdir="$pkgdir" || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } proc check { cd $builddir ./Build test } global sha512sums := '"cd7cc8962ccfad353d290d4f5113c8dfe362fdaeb535b843b5007b3a89396ca48ff14a7eb040c14a52dfd0af5c243cdde7d6f5f100c12eb4d133a4de931dd42a Time-timegm-0.01.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(perl-time-timegm)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgreal) op:Equal rhs:{(Time-timegm)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.01)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[18])] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("a UTC version of C"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://search.cpan.org/dist/Time-timegm/"))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:license) op: Equal rhs: {(DQ ("GPL PerlArtistic"))} spids: [36] ) ] spids: [36] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cpandepends) op:Equal rhs:{(DQ )} spids:[41])] spids: [41] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cpanmakedepends) op:Equal rhs:{(DQ )} spids:[45])] spids: [45] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cpancheckdepends) op:Equal rhs:{(DQ )} spids:[49])] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$cpandepends") (" perl-extutils-cchecker"))} spids: [53] ) ] spids: [53] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("perl-dev perl-module-build ") ($ VSub_Name "$cpanmakedepends"))} spids: [59] ) ] spids: [59] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:checkdepends) op: Equal rhs: {(DQ ($ VSub_Name "$cpancheckdepends"))} spids: [65] ) ] spids: [65] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [70] ) ] spids: [70] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/") ($ VSub_Name "$_pkgreal") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [76] ) ] spids: [76] ) (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: [85] ) ] spids: [85] ) (FuncDef name: prepare body: (BraceGroup children: [ (AndOr children: [ (C {(default_prepare)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(export)} {(Lit_VarLike "CFLAGS=") (CommandSubPart command_list: (CommandList children: [(C {(perl)} {(-MConfig)} {(-E)} {(SQ <"say $Config{ccflags}">)})] ) left_token: spids: [122 132] ) } ) (AndOr children: [ (C {(perl)} {(Build.PL)} {(Lit_VarLike "installdirs=") (vendor)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [99] ) spids: [95 98] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(export)} {(Lit_VarLike "CFLAGS=") (CommandSubPart command_list: (CommandList children: [(C {(perl)} {(-MConfig)} {(-E)} {(SQ <"say $Config{ccflags}">)})] ) left_token: spids: [168 178] ) } ) (C {(./Build)}) ] spids: [155] ) spids: [151 154] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./Build)} {(install)} {(Lit_VarLike "destdir=") (DQ ($ VSub_Name "$pkgdir"))}) (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: [190] ) spids: [186 189] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./Build)} {(test)})] spids: [245] ) spids: [241 244] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "cd7cc8962ccfad353d290d4f5113c8dfe362fdaeb535b843b5007b3a89396ca48ff14a7eb040c14a52dfd0af5c243cdde7d6f5f100c12eb4d133a4de931dd42a Time-timegm-0.01.tar.gz" ) ) } spids: [262] ) ] spids: [262] ) ] )