# Maintainer: Natanael Copa global pkgname := 'greybird-themes' global pkgver := '1.6.2' global pkgrel := '1' global pkgdesc := '"A clean minimalistic theme for Xfce, GTK+ 2 and 3'" global url := '"http://shimmerproject.org/project/greybird/'" global arch := '"noarch'" global license := '"GPLv2+ or CC-BY-SA'" global depends := ''"" global depends_dev := ''"" global makedepends := $depends_dev global install := ''"" global subpackages := ""$pkgname-gtk2 $pkgname-gtk3 $pkgname-metacity $pkgname-xfwm4 $pkgname-xfce4-notifyd:_notify $pkgname-unity"" global source := ""greybird-$pkgver.tar.gz::https://github.com/shimmerproject/Greybird/archive/v$pkgver.tar.gz gtk-3.14-fix.patch "" global _builddir := ""$srcdir"/Greybird-$pkgver" proc prepare { var i = '' cd $_builddir for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir # Cleanup # Remove Unity theme rm -f gtk-3.0/apps/unity.css rm -f gtk-3.0/apps/lightdm-unity-greeter.css sed -i '/unity\.css/d' gtk-3.0/gtk.css sed -i '/lightdm-unity-greeter\.css/d' gtk-3.0/gtk.css sed -i '/lightdm-gtk-greeter\.css/d' gtk-3.0/gtk.css } proc package { cd $_builddir mkdir -p "$pkgdir"/usr/share/themes/Greybird cp -pr * "$pkgdir"/usr/share/themes/Greybird } proc _mv { global pkgdesc := $1 global install_if := ""$pkgname=$pkgver-r$pkgrel $2""; global depends := '' var _i = '' shift; shift mkdir -p "$subpkgdir"/usr/share/themes/Greybirdfor _i in @Argv { msg "moving $_i" mv "$pkgdir"/usr/share/themes/Greybird/$_i \ "$subpkgdir"/usr/share/themes/Greybird || return 1 } } proc gtk2 { _mv "Greybird GTK+2 themes" gtk+2.0 gtk-2.0 global depends := '"gtk-murrine-engine'" } proc gtk3 { _mv "Greybird GTK+3 themes" gtk+3.0 gtk-3.0; } proc metacity { _mv "Greybird Metacity themes" metacity metacity-1; } proc xfwm4 { _mv "Greybird Xfce4 themes" xfwm4 xfwm4 'xfwm4-*'; } proc _notify { _mv "Greybird Xfce4-notifyd themes" xfce4-notifyd 'xfce-notify-*'; } proc unity { _mv "Greybird Unity themes" unity 'unity'; } global md5sums := '"542cfd641cd5ff723ee2fcdfdb1eabbd greybird-1.6.2.tar.gz ef3882cc1ea6c00fb1c372c911b563fe gtk-3.14-fix.patch'" global sha256sums := '"473a38b379381311b68dcc579005c0d5bbfbabefe1de7107d897c68b81e6b460 greybird-1.6.2.tar.gz 00d0c58a96c5c1090adcf8ec479d5d608e68d1141e79cebb1112f3430ae7a482 gtk-3.14-fix.patch'" global sha512sums := '"eddd6b89880dbc034ee32cc17751b6ee1b18b55eef31d745c64f865b96d0fbf36fe6ab59dbe89dbdd032b3ed01395850f9597bdc1897e276b0433e93353d893f greybird-1.6.2.tar.gz 6cb7912dda0b82065e58a51533ce0b7d6341af5e7e996dd2f2870c8e2db6c439e7c47f12e7bccb24c74021de6516ebbc9a0ac32c5323b048002b7abf87365722 gtk-3.14-fix.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(greybird-themes)} spids:[3])] spids: [3] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.6.2)} 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 ("A clean minimalistic theme for Xfce, GTK+ 2 and 3"))} spids: [12] ) ] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://shimmerproject.org/project/greybird/"))} 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 ("GPLv2+ or CC-BY-SA"))} spids: [27] ) ] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends_dev) op:Equal rhs:{(DQ )} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ($ VSub_Name "$depends_dev"))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[45])] spids: [45] ) (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\n") ("\t") ($ VSub_Name "$pkgname") ("-xfce4-notifyd:_notify ") ($ VSub_Name "$pkgname") (-unity) ) } spids: [49] ) ] spids: [49] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ (greybird-) ($ VSub_Name "$pkgver") (".tar.gz::https://github.com/shimmerproject/Greybird/archive/v") ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tgtk-3.14-fix.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")) (/Greybird-) ($ VSub_Name "$pkgver")} spids: [78] ) ] spids: [78] ) (FuncDef name: prepare body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[94])] spids: [92] ) (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [123 125 149 -1] ) ] spids: [116 120 152] ) ] spids: [113 155] ) spids: [109 111] ) ] spids: [89] ) spids: [85 88] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(rm)} {(-f)} {(gtk-3.0/apps/unity.css)}) (C {(rm)} {(-f)} {(gtk-3.0/apps/lightdm-unity-greeter.css)}) (C {(sed)} {(-i)} {(SQ <"/unity\\.css/d">)} {(gtk-3.0/gtk.css)}) (C {(sed)} {(-i)} {(SQ <"/lightdm-unity-greeter\\.css/d">)} {(gtk-3.0/gtk.css)}) (C {(sed)} {(-i)} {(SQ <"/lightdm-gtk-greeter\\.css/d">)} {(gtk-3.0/gtk.css)}) ] spids: [164] ) spids: [160 163] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Greybird)}) (C {(cp)} {(-pr)} {(Lit_Other "*")} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/themes/Greybird)} ) ] spids: [236] ) spids: [232 235] ) (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: [277] ) ] spids: [277] ) (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: [283] ) ] spids: [283] ) terminator: ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[296])] spids: [296] ) (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:_i) op:Equal spids:[301])] spids: [299] ) (Sentence child:(C {(shift)}) terminator:) (C {(shift)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/themes/Greybird)}) (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/Greybird/) ($ VSub_Name "$_i") } {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/themes/Greybird)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [325 358] ) spids: [-1 -1] ) ] spids: [274] ) spids: [270 273] ) (FuncDef name: gtk2 body: (BraceGroup children: [ (C {(_mv)} {(DQ ("Greybird GTK+2 themes"))} {(gtk) (Lit_Other "+") (2.0)} {(gtk-2.0)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ (gtk-murrine-engine))} spids: [384] ) ] spids: [384] ) ] spids: [368] ) spids: [364 367] ) (FuncDef name: gtk3 body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Greybird GTK+3 themes"))} {(gtk) (Lit_Other "+") (3.0)} {(gtk-3.0)}) terminator: ) ] spids: [396] ) spids: [392 395] ) (FuncDef name: metacity body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Greybird Metacity themes"))} {(metacity)} {(metacity-1)}) terminator: ) ] spids: [417] ) spids: [413 416] ) (FuncDef name: xfwm4 body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Greybird Xfce4 themes"))} {(xfwm4)} {(xfwm4)} {(SQ <"xfwm4-*">)}) terminator: ) ] spids: [436] ) spids: [432 435] ) (FuncDef name: _notify body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Greybird Xfce4-notifyd themes"))} {(xfce4-notifyd)} {(SQ <"xfce-notify-*">)} ) terminator: ) ] spids: [459] ) spids: [455 458] ) (FuncDef name: unity body: (BraceGroup children: [ (Sentence child: (C {(_mv)} {(DQ ("Greybird Unity themes"))} {(unity)} {(SQ )}) terminator: ) ] spids: [480] ) spids: [476 479] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("542cfd641cd5ff723ee2fcdfdb1eabbd greybird-1.6.2.tar.gz\n") ("ef3882cc1ea6c00fb1c372c911b563fe gtk-3.14-fix.patch") ) } spids: [498] ) ] spids: [498] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "473a38b379381311b68dcc579005c0d5bbfbabefe1de7107d897c68b81e6b460 greybird-1.6.2.tar.gz\n" ) ("00d0c58a96c5c1090adcf8ec479d5d608e68d1141e79cebb1112f3430ae7a482 gtk-3.14-fix.patch") ) } spids: [504] ) ] spids: [504] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "eddd6b89880dbc034ee32cc17751b6ee1b18b55eef31d745c64f865b96d0fbf36fe6ab59dbe89dbdd032b3ed01395850f9597bdc1897e276b0433e93353d893f greybird-1.6.2.tar.gz\n" ) ( "6cb7912dda0b82065e58a51533ce0b7d6341af5e7e996dd2f2870c8e2db6c439e7c47f12e7bccb24c74021de6516ebbc9a0ac32c5323b048002b7abf87365722 gtk-3.14-fix.patch" ) ) } spids: [510] ) ] spids: [510] ) ] )