# Maintainer: Natanael Copa global pkgname := 'xcb-proto' global pkgver := '1.12' global pkgrel := '1' global pkgdesc := '"XML-XCB protocol descriptions'" global url := '"http://xcb.freedesktop.org/'" global arch := '"noarch'" global license := '"custom'" global depends := '' global makedepends := '"python3'" # no testsuite global options := '"!check'" global source := ""http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2 python3.patch"" global builddir := ""$(srcdir)/$(pkgname)-$(pkgver)"" proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR=$(pkgdir) install || return 1 install -m755 -d $(pkgdir)/usr/share/licenses/$(pkgname) install -m644 COPYING $(pkgdir)/usr/share/licenses/$(pkgname)/ || return 1 } global sha512sums := '"1f427eaf223971b25b56c9f641350e03f5ebeb17a1fc212ce2a0c892de7aba7e53d5e3958b073a122bb344c387c0ff394cf96f542ff046f33de4e1cd27fb9e5c xcb-proto-1.12.tar.bz2 291fb6410c656e3744ba51054cb51d25c10eb738223d65367b43dca7bfa8b82440e9c0836f615fcee64040e79087d68d25c2d329348623b936abb520a9135bfd python3.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(xcb-proto)} spids:[3])] spids: [3] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.12)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("XML-XCB protocol descriptions"))} spids: [12] ) ] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://xcb.freedesktop.org/"))} spids: [17] ) ] spids: [17] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[22])] spids: [22] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (custom))} spids:[27])] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(DQ (python3))} spids:[34])] spids: [34] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ ("!check"))} spids:[42])] spids: [42] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://xcb.freedesktop.org/dist/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.bz2\n") ("\tpython3.patch") ) } spids: [47] ) ] spids: [47] ) (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: [58] ) ] spids: [58] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [78] ) spids: [74 77] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(Lit_VarLike "DESTDIR=") (${ VSub_Name pkgdir)} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(install)} {(-m755)} {(-d)} {(${ VSub_Name pkgdir) (/usr/share/licenses/) (${ VSub_Name pkgname)} ) (AndOr children: [ (C {(install)} {(-m644)} {(COPYING)} {(${ VSub_Name pkgdir) (/usr/share/licenses/) (${ VSub_Name pkgname) (/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [132] ) spids: [128 131] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "1f427eaf223971b25b56c9f641350e03f5ebeb17a1fc212ce2a0c892de7aba7e53d5e3958b073a122bb344c387c0ff394cf96f542ff046f33de4e1cd27fb9e5c xcb-proto-1.12.tar.bz2\n" ) ( "291fb6410c656e3744ba51054cb51d25c10eb738223d65367b43dca7bfa8b82440e9c0836f615fcee64040e79087d68d25c2d329348623b936abb520a9135bfd python3.patch" ) ) } spids: [196] ) ] spids: [196] ) ] )