# Contributor: Michael Mason # Maintainer: Natanael Copa global pkgname := 'screen' global pkgver := '4.6.1' global pkgrel := '1' global pkgdesc := '"A window manager that multiplexes a physical terminal'" global url := '"http://ftp.gnu.org/gnu/screen/'" global arch := '"all'" global license := '"GPL3+'" global options := '"!check'" # No test suite. global makedepends := '"ncurses-dev ncurses'" global subpackages := ""$pkgname-doc"" global source := ""http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz"" global builddir := ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-colors256 make } proc package { cd $builddir make -j1 DESTDIR="$pkgdir" install # remove suid root find $pkgdir -type f -perm -u+s -print0 \ | xargs -0 chmod -s install -Dm644 etc/etcscreenrc "$pkgdir"/etc/screenrc install -Dm644 etc/screenrc "$pkgdir"/etc/skel/.screenrc } global sha512sums := '"e5d029400ed5b509ebddc1f55812c33536d6f5ce91119537c7d06e1fa7dee84939c43337df4638f61c818ce0412f4d08fe212202162a4483a9e84bbc4b3e4336 screen-4.6.1.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(screen)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(4.6.1)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A window manager that multiplexes a physical terminal"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://ftp.gnu.org/gnu/screen/"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ ("GPL3+"))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ ("!check"))} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("ncurses-dev ncurses"))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://ftp.gnu.org/gnu/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [54] ) ] spids: [54] ) (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: [65] ) ] spids: [65] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--infodir) (Lit_Other "=") (/usr/share/info)} {(--enable-colors256)} ) (C {(make)}) ] spids: [79] ) spids: [75 78] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(-j1)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (Pipeline children: [ (C {(find)} {(DQ ($ VSub_Name "$pkgdir"))} {(-type)} {(f)} {(-perm)} {(-u) (Lit_Other "+") (s)} {(-print0)} ) (C {(xargs)} {(-0)} {(chmod)} {(-s)}) ] negated: False ) (C {(install)} {(-Dm644)} {(etc/etcscreenrc)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/screenrc)}) (C {(install)} {(-Dm644)} {(etc/screenrc)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/skel/.screenrc)} ) ] spids: [141] ) spids: [137 140] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "e5d029400ed5b509ebddc1f55812c33536d6f5ce91119537c7d06e1fa7dee84939c43337df4638f61c818ce0412f4d08fe212202162a4483a9e84bbc4b3e4336 screen-4.6.1.tar.gz" ) ) } spids: [226] ) ] spids: [226] ) ] )