# Contributor: Fabian Affolter # Maintainer: Fabian Affolter global pkgname := 'py-flake8-builtins' global _pkgname := 'flake8-builtins' global pkgver := '0.2' global pkgrel := '1' global pkgdesc := '"Extension for flake8 to check for builtins'" global url := '"https://github.com/gforcada/flake8-builtins'" global arch := '"noarch'" global license := '"MIT'" global depends := '"flake8'" global makedepends := '"python3-dev'" global source := ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" global builddir := ""$srcdir"/$_pkgname-$pkgver" proc build { cd $builddir python3 setup.py build || return 1 } proc package { cd $builddir python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } global md5sums := '"c05026a3a2b773fb29af4d482196c57a flake8-builtins-0.2.tar.gz'" global sha256sums := '"d426403d6c73e19af6e9f720da8329809ccd454d046872e674c3b2bd0ac9666b flake8-builtins-0.2.tar.gz'" global sha512sums := '"cde2f4d5e5b0076d6dc267df7a35ed84c3dda2012056072415ea8b67536b4569d6d1182e8ffb0a5f62afdaf6b34fa082bfdc7b48b6aa7aa6df950bb6c7d5e3dd flake8-builtins-0.2.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(py-flake8-builtins)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(flake8-builtins)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(0.2)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Extension for flake8 to check for builtins"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://github.com/gforcada/flake8-builtins"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (MIT))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ (flake8))} spids:[38])] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ (python3-dev))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://files.pythonhosted.org/packages/source/") (BracedVarSub token: suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w:{(Lit_Digits 1)}) ) spids: [51 57] ) (/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} spids: [67] ) ] spids: [67] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(python3)} {(setup.py)} {(build)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [81] ) spids: [77 80] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(python3)} {(setup.py)} {(install)} {(--prefix) (Lit_Other "=") (/usr)} {(--root) (Lit_Other "=") (DQ ($ VSub_Name "$pkgdir"))} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [110] ) spids: [106 109] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("c05026a3a2b773fb29af4d482196c57a flake8-builtins-0.2.tar.gz"))} spids: [145] ) ] spids: [145] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "d426403d6c73e19af6e9f720da8329809ccd454d046872e674c3b2bd0ac9666b flake8-builtins-0.2.tar.gz" ) ) } spids: [150] ) ] spids: [150] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "cde2f4d5e5b0076d6dc267df7a35ed84c3dda2012056072415ea8b67536b4569d6d1182e8ffb0a5f62afdaf6b34fa082bfdc7b48b6aa7aa6df950bb6c7d5e3dd flake8-builtins-0.2.tar.gz" ) ) } spids: [155] ) ] spids: [155] ) ] )