# Contributor: Carlo Landmeter # Maintainer: Ben Allen global pkgname := 'cpupower' global _kver := '4.4.14' global _kpkgrel := '1' global pkgver := $_kver global pkgrel := $_kpkgrel global pkgdesc := '"Linux kernel tool to examine and tune power saving related features of your processor'" global url := '"http://www.kernel.org'" global arch := '"all'" global license := '"GPL2'" global depends_dev := '"pciutils-dev readline-dev'" global makedepends := ""$depends_dev bash linux-headers"" global subpackages := ""$pkgname-doc $pkgname-dev"" global replaces := '"linux-tools-cpupower'" global source := ""https://kernel.org/pub/linux/kernel/v4.x/linux-$pkgver.tar.xz cpupower.initd cpupower.confd nls.patch "" global builddir := ""$srcdir"/linux-$pkgver" proc build { cd "$builddir"/tools/power/cpupower make NLS=false VERSION=$pkgver-$pkgrel } proc package { cd "$builddir"/tools/power/cpupower make NLS=false DESTDIR="$pkgdir" mandir="/usr/share/man" install || return 1 install -Dm755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -Dm644 "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 } global md5sums := '"59e99c3bf5d495f1f95d26257962ca3e linux-4.4.14.tar.xz 209e4f95728bd7c7c4ba35c320683a9b cpupower.initd fc335236f7617b042066c6231d5c9b87 cpupower.confd b85e224699b4988482a9e624ac415961 nls.patch'" global sha256sums := '"5953ba12797160a68b1068378f826ddac8a298f8f3273876d3bd18222b0555f9 linux-4.4.14.tar.xz bd7133303c9a0fc892267335b6fb371d6179c6f4251d7f360ae82d7d1f0b321f cpupower.initd 9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947 cpupower.confd c2b4dfe619c54e40c36bfbc541f18d57f15e07f1788df4a2e9bc336b443a5860 nls.patch'" global sha512sums := '"c9d4f3e8949cfb715ff2fc4169a12938132f967ad509c154f5c8598c70ac14989364083f1ab29c2fbab120945363f1343f2a30819df9be53938d4ef43391dbc5 linux-4.4.14.tar.xz 97ecfeaaaa8efca7af585316b843bf7be885e88095bbdfbf52bc9a96b14dc862435482781e205ea022ab208978aaa4aabb317354fab890ed514a5088ae5045c8 cpupower.initd 63cd12a4d8782198c71662e9205e346e064b65bae5e3e175b5bc43bdf7ec6ddf675b60349750afe3c37c8a925f9ae9a93530671821342581bd282a69e0773b8c cpupower.confd f4e8365ddccc26f3dec66311fac04560661934f9ddb888d48c2e67818a0647883e13e8542149f7981f532ff58c002e901ca543061cd0c46c29ea089dfe3ceafe nls.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(cpupower)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_kver) op:Equal rhs:{(4.4.14)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_kpkgrel) op:Equal rhs:{(1)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgver) op: Equal rhs: {($ VSub_Name "$_kver")} spids: [16] ) ] spids: [16] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgrel) op: Equal rhs: {($ VSub_Name "$_kpkgrel")} spids: [19] ) ] spids: [19] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: { (DQ ( "Linux kernel tool to examine and tune power saving related features of your processor" ) ) } spids: [22] ) ] spids: [22] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.kernel.org"))} spids: [27] ) ] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[37])] spids: [37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends_dev) op: Equal rhs: {(DQ ("pciutils-dev readline-dev"))} spids: [42] ) ] spids: [42] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ($ VSub_Name "$depends_dev") (" bash linux-headers"))} spids: [47] ) ] spids: [47] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-doc ") ($ VSub_Name "$pkgname") (-dev))} spids: [53] ) ] spids: [53] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (linux-tools-cpupower))} spids: [61] ) ] spids: [61] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://kernel.org/pub/linux/kernel/v4.x/linux-") ($ VSub_Name "$pkgver") (".tar.xz\n") ("\tcpupower.initd\n") ("\tcpupower.confd\n") ("\tnls.patch\n") ("\t") ) } spids: [66] ) ] spids: [66] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/linux-) ($ VSub_Name "$pkgver")} spids: [78] ) ] spids: [78] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/tools/power/cpupower)}) (C {(make)} {(Lit_VarLike "NLS=") (false)} {(Lit_VarLike "VERSION=") ($ VSub_Name "$pkgver") (-) ($ VSub_Name "$pkgrel")} ) ] spids: [90] ) spids: [86 89] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/tools/power/cpupower)}) (AndOr children: [ (C {(make)} {(Lit_VarLike "NLS=") (false)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(Lit_VarLike "mandir=") (DQ (/usr/share/man))} {(install)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-Dm755)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-Dm644)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [118] ) spids: [114 117] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("59e99c3bf5d495f1f95d26257962ca3e linux-4.4.14.tar.xz\n") ("209e4f95728bd7c7c4ba35c320683a9b cpupower.initd\n") ("fc335236f7617b042066c6231d5c9b87 cpupower.confd\n") ("b85e224699b4988482a9e624ac415961 nls.patch") ) } spids: [208] ) ] spids: [208] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "5953ba12797160a68b1068378f826ddac8a298f8f3273876d3bd18222b0555f9 linux-4.4.14.tar.xz\n" ) ("bd7133303c9a0fc892267335b6fb371d6179c6f4251d7f360ae82d7d1f0b321f cpupower.initd\n") ( "9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947 cpupower.confd\n" ) ("c2b4dfe619c54e40c36bfbc541f18d57f15e07f1788df4a2e9bc336b443a5860 nls.patch") ) } spids: [216] ) ] spids: [216] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "c9d4f3e8949cfb715ff2fc4169a12938132f967ad509c154f5c8598c70ac14989364083f1ab29c2fbab120945363f1343f2a30819df9be53938d4ef43391dbc5 linux-4.4.14.tar.xz\n" ) ( "97ecfeaaaa8efca7af585316b843bf7be885e88095bbdfbf52bc9a96b14dc862435482781e205ea022ab208978aaa4aabb317354fab890ed514a5088ae5045c8 cpupower.initd\n" ) ( "63cd12a4d8782198c71662e9205e346e064b65bae5e3e175b5bc43bdf7ec6ddf675b60349750afe3c37c8a925f9ae9a93530671821342581bd282a69e0773b8c cpupower.confd\n" ) ( "f4e8365ddccc26f3dec66311fac04560661934f9ddb888d48c2e67818a0647883e13e8542149f7981f532ff58c002e901ca543061cd0c46c29ea089dfe3ceafe nls.patch" ) ) } spids: [224] ) ] spids: [224] ) ] )