# Maintainer: Renoir Boulanger global pkgname := 'php7-mustache' global _phpext := 'mustache' global pkgver := '0.7.3' global pkgrel := '0' global pkgdesc := '"PHP 7 PECL extension: C++ implementation of Mustache'" global giturl := '"https://github.com/jbboehr/php-mustache.git'" global url := '"https://github.com/jbboehr/php-mustache'" global arch := 'all' global license := 'MIT' global depends := 'libmustache' global makedepends := '"php7-dev autoconf'" # Look at commit ref for spec/ folder at https://github.com/jbboehr/mustache-spec global _mustachespec_gitrev := '72233f3ffda9e33915fd3022d0a9ebbcce265acd' global _pkg_filename := "php-mustache-$pkgver" global source := ""php-mustache-$pkgver.tar.gz::https://github.com/jbboehr/php-mustache/archive/v$pkgver.tar.gz mustache-spec-$_mustachespec_gitrev.tar.gz::https://github.com/jbboehr/mustache-spec/archive/$_mustachespec_gitrev.tar.gz"" global builddir := ""$srcdir/$_pkg_filename/"" proc prepare { rm -rf "$builddir"/spec ln -s "$srcdir"/mustache-spec-$_mustachespec_gitrev "$builddir"/spec cd $builddir default_prepare } proc build { cd $builddir phpize7 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-php-config=php-config7 \ --enable-mustache make } proc check { cd $builddir make test < /dev/null } proc package { cd $builddir make INSTALL_ROOT="$pkgdir" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_phpext.so" > "$pkgdir"/etc/php7/conf.d/70_$_phpext.ini } global sha512sums := '"672d8e64aea0c843a85e8ec1501d2453f8cff5237ce160185ecc3fc421e31000f806aec8d4055b558d32d4a1017b80ca05868b36ebf81892a2b7f910a09da235 php-mustache-0.7.3.tar.gz d63ca7c3016190e101b2db153a33e4e523e0199e3fb3778733d791e4853bab20925046d0cb34bbde0985a4b6b78b1ec6003db1e2384693352d03f7d67799ed10 mustache-spec-72233f3ffda9e33915fd3022d0a9ebbcce265acd.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(php7-mustache)} spids:[4])] spids: [4] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_phpext) op:Equal rhs:{(mustache)} spids:[7])] spids: [7] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.7.3)} spids:[10])] spids: [10] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[13])] spids: [13] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP 7 PECL extension: C++ implementation of Mustache"))} spids: [16] ) ] spids: [16] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:giturl) op: Equal rhs: {(DQ ("https://github.com/jbboehr/php-mustache.git"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://github.com/jbboehr/php-mustache"))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(all)} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(MIT)} spids:[34])] spids: [34] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(libmustache)} spids:[37])] spids: [37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("php7-dev autoconf"))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_mustachespec_gitrev) op: Equal rhs: {(72233f3ffda9e33915fd3022d0a9ebbcce265acd)} spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_pkg_filename) op: Equal rhs: {(php-mustache-) ($ VSub_Name "$pkgver")} spids: [51] ) ] spids: [51] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ (php-mustache-) ($ VSub_Name "$pkgver") (".tar.gz::https://github.com/jbboehr/php-mustache/archive/v") ($ VSub_Name "$pkgver") (".tar.gz\n") ("\t\tmustache-spec-") ($ VSub_Name "$_mustachespec_gitrev") (".tar.gz::https://github.com/jbboehr/mustache-spec/archive/") ($ VSub_Name "$_mustachespec_gitrev") (.tar.gz) ) } spids: [55] ) ] spids: [55] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_pkg_filename") (/))} spids: [69] ) ] spids: [69] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(rm)} {(-rf)} {(DQ ($ VSub_Name "$builddir")) (/spec)}) (C {(ln)} {(-s)} {(DQ ($ VSub_Name "$srcdir")) (/mustache-spec-) ($ VSub_Name "$_mustachespec_gitrev")} {(DQ ($ VSub_Name "$builddir")) (/spec)} ) (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(default_prepare)}) ] spids: [82] ) spids: [78 81] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(phpize7)}) (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--with-php-config) (Lit_Other "=") (php-config7)} {(--enable-mustache)} ) (C {(make)}) ] spids: [127] ) spids: [123 126] ) (FuncDef name: check body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (SimpleCommand words: [{(make)} {(test)}] redirects: [(Redir op_id:Redir_Less fd:-1 arg_word:{(/dev/null)} spids:[194])] ) ] spids: [180] ) spids: [176 179] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "INSTALL_ROOT=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/php7/conf.d)}) (SimpleCommand words: [{(echo)} {(DQ ("extension=") ($ VSub_Name "$_phpext") (.so))}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$pkgdir")) (/etc/php7/conf.d/70_) ($ VSub_Name "$_phpext") (.ini) } spids: [243] ) ] ) ] spids: [205] ) spids: [201 204] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "672d8e64aea0c843a85e8ec1501d2453f8cff5237ce160185ecc3fc421e31000f806aec8d4055b558d32d4a1017b80ca05868b36ebf81892a2b7f910a09da235 php-mustache-0.7.3.tar.gz\n" ) ( "d63ca7c3016190e101b2db153a33e4e523e0199e3fb3778733d791e4853bab20925046d0cb34bbde0985a4b6b78b1ec6003db1e2384693352d03f7d67799ed10 mustache-spec-72233f3ffda9e33915fd3022d0a9ebbcce265acd.tar.gz" ) ) } spids: [255] ) ] spids: [255] ) ] )