# Contributor: Francesco Colista # Maintainer: Francesco Colista global pkgname := 'cunit' global _pkgname := 'CUnit' global pkgver := '2.1.3' global _pkgver := "$(pkgver%.*)-$(pkgver##*.)" global pkgrel := '1' global pkgdesc := '"Automated testing framework for C'" global url := '"http://cunit.sourceforge.net/'" global arch := '"all'" global license := '"GPL2'" global makedepends := '"automake autoconf libtool bash'" global subpackages := ""$pkgname-dev $pkgname-doc"" global source := ""https://downloads.sourceforge.net/project/$pkgname/$_pkgname/$_pkgver/$_pkgname-$_pkgver.tar.bz2 path-makefile.patch"" global builddir := ""$srcdir/$_pkgname-$_pkgver"" proc prepare { default_prepare cd $builddir libtoolize --force --copy aclocal autoheader automake --add-missing --include-deps --copy autoconf } proc build { cd $builddir ./configure \ --prefix=/usr \ --includedir=/usr/include \ --datarootdir=/usr/share \ --libdir=/usr/lib \ --enable-debug \ --enable-examples \ --enable-automated \ --enable-basic \ --enable-test \ --disable-static make } proc check { cd $builddir make check } proc package { cd $builddir make DESTDIR="$pkgdir" install } global md5sums := '"b5f1a9f6093869c070c6e4a9450cc10c CUnit-2.1-3.tar.bz2 975cfef465755b6cc5b946afb8dfcdd0 path-makefile.patch'" global sha256sums := '"f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 CUnit-2.1-3.tar.bz2 229dc40fdbbd918a9349f8c8bd49e0962de32ab6e249776c30661424a363c5f4 path-makefile.patch'" global sha512sums := '"547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487 CUnit-2.1-3.tar.bz2 94b9ef959ff9808c6adb2022a8c085232bc3ca0d5023584a13c35c6cb17b98674b7cc252d65d53a5b3db085f82853463ade7f9b910b564befe1d7b1e868de105 path-makefile.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(cunit)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(CUnit)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(2.1.3)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_pkgver) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{(".*")}) spids: [16 20] ) (-) (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*.")}) spids: [22 26] ) } spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Automated testing framework for C"))} spids: [31] ) ] spids: [31] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://cunit.sourceforge.net/"))} spids: [36] ) ] spids: [36] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[41])] spids: [41] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[46])] spids: [46] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("automake autoconf libtool bash"))} spids: [51] ) ] spids: [51] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-dev ") ($ VSub_Name "$pkgname") (-doc))} spids: [56] ) ] spids: [56] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://downloads.sourceforge.net/project/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgver") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$_pkgver") (".tar.bz2\n") ("\tpath-makefile.patch") ) } spids: [64] ) ] spids: [64] ) (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: [80] ) ] spids: [80] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(default_prepare)}) (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(libtoolize)} {(--force)} {(--copy)}) (C {(aclocal)}) (C {(autoheader)}) (C {(automake)} {(--add-missing)} {(--include-deps)} {(--copy)}) (C {(autoconf)}) ] spids: [94] ) spids: [90 93] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./configure)} {(--prefix) (Lit_Other "=") (/usr)} {(--includedir) (Lit_Other "=") (/usr/include)} {(--datarootdir) (Lit_Other "=") (/usr/share)} {(--libdir) (Lit_Other "=") (/usr/lib)} {(--enable-debug)} {(--enable-examples)} {(--enable-automated)} {(--enable-basic)} {(--enable-test)} {(--disable-static)} ) (C {(make)}) ] spids: [138] ) spids: [134 137] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(check)})] spids: [208] ) spids: [204 207] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) ] spids: [229] ) spids: [225 228] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("b5f1a9f6093869c070c6e4a9450cc10c CUnit-2.1-3.tar.bz2\n") ("975cfef465755b6cc5b946afb8dfcdd0 path-makefile.patch") ) } spids: [251] ) ] spids: [251] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 CUnit-2.1-3.tar.bz2\n" ) ("229dc40fdbbd918a9349f8c8bd49e0962de32ab6e249776c30661424a363c5f4 path-makefile.patch") ) } spids: [257] ) ] spids: [257] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487 CUnit-2.1-3.tar.bz2\n" ) ( "94b9ef959ff9808c6adb2022a8c085232bc3ca0d5023584a13c35c6cb17b98674b7cc252d65d53a5b3db085f82853463ade7f9b910b564befe1d7b1e868de105 path-makefile.patch" ) ) } spids: [263] ) ] spids: [263] ) ] )