# Automatically generated by apkbuild-cpan, template 1 # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka global pkgname := 'perl-exporter-lite' global _pkgreal := 'Exporter-Lite' global pkgver := '0.08' global pkgrel := '0' global pkgdesc := '"Lightweight exporting of functions and variables'" global url := '"http://search.cpan.org/dist/Exporter-Lite/'" global arch := '"noarch'" global license := '"GPL PerlArtistic'" global cpandepends := ''"" global cpanmakedepends := ''"" global depends := $cpandepends global makedepends := ""perl-dev $cpanmakedepends"" global subpackages := ""$pkgname-doc"" global source := ""http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_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}] env PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } proc build { cd $builddir export CFLAGS=$[perl -MConfig -E 'say $Config{ccflags}] make && make test } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } global md5sums := '"4982e3e96b9536cbce8b1f708eb718a1 Exporter-Lite-0.08.tar.gz'" global sha256sums := '"c05b3909af4cb86f36495e94a599d23ebab42be7a18efd0d141fc1586309dac2 Exporter-Lite-0.08.tar.gz'" global sha512sums := '"8c6ff5a88c1b810d74156c5d84695cfde6f555e0fc663804123e2a96f5e2235a5adeebbf24b18301ed2c3fb57f76788ecfdf301b26263279e92a88a9143b8953 Exporter-Lite-0.08.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(perl-exporter-lite)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgreal) op:Equal rhs:{(Exporter-Lite)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.08)} 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 ("Lightweight exporting of functions and variables"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://search.cpan.org/dist/Exporter-Lite/"))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} 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:depends) op: Equal rhs: {(DQ ($ VSub_Name "$cpandepends"))} spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("perl-dev ") ($ VSub_Name "$cpanmakedepends"))} spids: [54] ) ] spids: [54] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [60] ) ] spids: [60] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/") ($ VSub_Name "$_pkgreal") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [66] ) ] spids: [66] ) (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: [75] ) ] spids: [75] ) (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: [112 122] ) } ) (SimpleCommand words: [{(perl)} {(Makefile.PL)} {(Lit_VarLike "INSTALLDIRS=") (vendor)}] more_env: [(env_pair name:PERL_MM_USE_DEFAULT val:{(1)} spids:[125])] ) ] spids: [89] ) spids: [85 88] ) (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: [155 165] ) } ) (AndOr children:[(C {(make)})(C {(make)} {(test)})] op_id:Op_DAmp) ] spids: [142] ) spids: [138 141] ) (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: [183] ) spids: [179 182] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("4982e3e96b9536cbce8b1f708eb718a1 Exporter-Lite-0.08.tar.gz"))} spids: [234] ) ] spids: [234] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "c05b3909af4cb86f36495e94a599d23ebab42be7a18efd0d141fc1586309dac2 Exporter-Lite-0.08.tar.gz" ) ) } spids: [239] ) ] spids: [239] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "8c6ff5a88c1b810d74156c5d84695cfde6f555e0fc663804123e2a96f5e2235a5adeebbf24b18301ed2c3fb57f76788ecfdf301b26263279e92a88a9143b8953 Exporter-Lite-0.08.tar.gz" ) ) } spids: [244] ) ] spids: [244] ) ] )