# Maintainer: Stuart Cardall global pkgname := 'numix-themes' global _pkgname := 'numix-gtk-theme' global pkgver := '2.6.4' global pkgrel := '0' global pkgdesc := '"A modern flat theme with a combination of light and dark elements, GTK 2 and 3'" global url := '"http://shimmerproject.org/project/Numix/'" global arch := '"noarch'" global license := '"GPLv3'" global subpackages := ""$pkgname-gtk2 $pkgname-gtk3 $pkgname-metacity $pkgname-xfwm4 $pkgname-xfce4-notifyd:_notify $pkgname-openbox:_openbox"" global source := ""numix-$pkgver.tar.gz::https://github.com/numixproject/$_pkgname/archive/$pkgver.tar.gz"" global builddir := ""$srcdir/$_pkgname-$pkgver/src"" proc build { cd $builddir # Remove Unity theme rm -f gtk-3.0/apps/unity.css sed -i '/unity\.css/d' gtk-3.0/gtk.css rm -rf unity } proc package { cd $builddir mkdir -p "$pkgdir"/usr/share/themes/Numix cp -pr ../* "$pkgdir"/usr/share/themes/Numix mv index.theme "$pkgdir"/usr/share/themes/Numix cd "$pkgdir"/usr/share/themes/Numix rm -rf src/assets scripts Makefile } proc _mv { global pkgdesc := $1 global install_if := ""$pkgname=$pkgver-r$pkgrel $2""; var _i = '' shift; shift mkdir -p "$subpkgdir"/usr/share/themes/Numixfor _i in @Argv { msg "moving $_i" mv "$pkgdir"/usr/share/themes/Numix/src/$_i \ "$subpkgdir"/usr/share/themes/Numix || return 1 } # index.theme remains in src despite being moved in package(). rm -f "$pkgdir"/usr/share/themes/Numix/src/index.theme !2 >/dev/null || true # Remove the empty top level src directory after moving finishes. rmdir "$pkgdir"/usr/share/themes/Numix/src !2 >/dev/null || true } proc gtk2 { _mv "Numix GTK2 themes" gtk2.0 gtk-2.0 global depends := '"gtk-murrine-engine'" } proc gtk3 { _mv "Numix GTK3 themes" gtk3.0 gtk-3.*; } proc metacity { _mv "Numix Metacity themes" metacity metacity-1; } proc xfwm4 { _mv "Numix Xfce4 themes" xfwm4 xfwm4; } proc _notify { _mv "Numix Xfce4-notifyd themes" xfce4-notifyd xfce-notify-4.0; } proc _openbox { _mv "Numix openbox themes" openbox openbox-3; } global md5sums := '"cdaca5ede2a40000d383d200e01c0395 numix-2.6.4.tar.gz'" global sha256sums := '"f70cad6608d9a1b4819eaf6b51fc03d5c75971ff8f08080ac2eb9a5d8e386e6f numix-2.6.4.tar.gz'" global sha512sums := '"a546f6214095a1b1d808e317ff4f3471962afacd20b5b3b4e1bc46bb604d5d9d4162b2358048dcf02f4fb2d7290ce5cfbc82a4f4e1bf07ca186ca6f54789d586 numix-2.6.4.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(numix-themes)} spids:[3])] spids: [3] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(numix-gtk-theme)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(2.6.4)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A modern flat theme with a combination of light and dark elements, GTK 2 and 3"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://shimmerproject.org/project/Numix/"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPLv3))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") ("-gtk2 ") ($ VSub_Name "$pkgname") ("-gtk3 ") ($ VSub_Name "$pkgname") ("-metacity ") ($ VSub_Name "$pkgname") ("-xfwm4 ") ($ VSub_Name "$pkgname") ("-xfce4-notifyd:_notify\n") ("\t\t") ($ VSub_Name "$pkgname") ("-openbox:_openbox") ) } spids: [35] ) ] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ (numix-) ($ VSub_Name "$pkgver") (".tar.gz::https://github.com/numixproject/") ($ VSub_Name "$_pkgname") (/archive/) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [52] ) ] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (/src)) } spids: [63] ) ] spids: [63] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(rm)} {(-f)} {(gtk-3.0/apps/unity.css)}) (C {(sed)} {(-i)} {(SQ <"/unity\\.css/d">)} {(gtk-3.0/gtk.css)}) (C {(rm)} {(-rf)} {(unity)}) ] spids: [78] ) spids: [74 77] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix)}) (C {(cp)} {(-pr)} {(../) (Lit_Other "*")} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix)} ) (C {(mv)} {(index.theme)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix)}) (C {(cd)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix)}) (C {(rm)} {(-rf)} {(src/assets)} {(scripts)} {(Makefile)}) ] spids: [123] ) spids: [119 122] ) (FuncDef name: _mv body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [194] ) ] spids: [194] ) (Sentence child: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:install_if) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") ("=") ($ VSub_Name "$pkgver") (-r) ($ VSub_Name "$pkgrel") (" ") ($ VSub_Number "$2") ) } spids: [200] ) ] spids: [200] ) terminator: ) (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:_i) op:Equal spids:[215])] spids: [213] ) (Sentence child:(C {(shift)}) terminator:) (C {(shift)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/themes/Numix)}) (ForEach iter_name: _i do_arg_iter: True body: (DoGroup children: [ (C {(msg)} {(DQ ("moving ") ($ VSub_Name "$_i"))}) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix/src/) ($ VSub_Name "$_i") } {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/themes/Numix)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [239 272] ) spids: [-1 -1] ) (AndOr children: [ (SimpleCommand words: [ {(rm)} {(-f)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix/src/index.theme)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[288])] ) (C {(true)}) ] op_id: Op_DPipe ) (AndOr children: [ (SimpleCommand words: [{(rmdir)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Numix/src)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[307])] ) (C {(true)}) ] op_id: Op_DPipe ) ] spids: [191] ) spids: [187 190] ) (FuncDef name: gtk2 body: (BraceGroup children: [ (C {(_mv)} {(DQ ("Numix GTK2 themes"))} {(gtk2.0)} {(gtk-2.0)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ (gtk-murrine-engine))} spids: [335] ) ] spids: [335] ) ] spids: [321] ) spids: [317 320] ) (FuncDef name: gtk3 body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Numix GTK3 themes"))} {(gtk3.0)} {(gtk-3.) (Lit_Other "*")}) terminator: ) ] spids: [347] ) spids: [343 346] ) (FuncDef name: metacity body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Numix Metacity themes"))} {(metacity)} {(metacity-1)}) terminator: ) ] spids: [367] ) spids: [363 366] ) (FuncDef name: xfwm4 body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Numix Xfce4 themes"))} {(xfwm4)} {(xfwm4)}) terminator: ) ] spids: [386] ) spids: [382 385] ) (FuncDef name: _notify body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Numix Xfce4-notifyd themes"))} {(xfce4-notifyd)} {(xfce-notify-4.0)}) terminator: ) ] spids: [405] ) spids: [401 404] ) (FuncDef name: _openbox body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Numix openbox themes"))} {(openbox)} {(openbox-3)}) terminator: ) ] spids: [424] ) spids: [420 423] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("cdaca5ede2a40000d383d200e01c0395 numix-2.6.4.tar.gz"))} spids: [440] ) ] spids: [440] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "f70cad6608d9a1b4819eaf6b51fc03d5c75971ff8f08080ac2eb9a5d8e386e6f numix-2.6.4.tar.gz" ) ) } spids: [445] ) ] spids: [445] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "a546f6214095a1b1d808e317ff4f3471962afacd20b5b3b4e1bc46bb604d5d9d4162b2358048dcf02f4fb2d7290ce5cfbc82a4f4e1bf07ca186ca6f54789d586 numix-2.6.4.tar.gz" ) ) } spids: [450] ) ] spids: [450] ) ] )