# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka global pkgname := 'ttyd' global pkgver := '1.3.3' global pkgrel := '1' global pkgdesc := '"Share your terminal over the web'" global url := '"https://tsl0922.github.io/ttyd'" global arch := '"all'" global license := '"MIT'" # Note: vim is needed for tool xxd. global makedepends := '"cmake json-c-dev bsd-compat-headers libressl-dev libwebsockets-dev vim zlib-dev'" global subpackages := ""$pkgname-doc"" global source := ""$pkgname-$pkgver.tar.gz::https://github.com/tsl0922/$pkgname/archive/$pkgver.tar.gz fix-cmake.patch"" global builddir := ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir mkdir -p build && cd build cmake .. \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=TRUE make } proc check { cd "$builddir"/build ./ttyd --version } proc package { cd "$builddir"/build make DESTDIR="$pkgdir" install } global sha512sums := '"52591fa5a0a6bda623f0437b5900d7f22ad87a904a0d04710ac2f3d5fddbb9e1311b764339483b0820e416e646a62133c7598b88573120c86dd20f98aea0dfed ttyd-1.3.3.tar.gz 677f71abfec9e74db8f7976e6cb8c4eba052df71162390fa26e7c31f064a179d8587f07088eb0a5ada507a345b11af8d663162c77aad5e7fd129503eb15f83af fix-cmake.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(ttyd)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.3.3)} 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 ("Share your terminal over the web"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://tsl0922.github.io/ttyd"))} 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 (MIT))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("cmake json-c-dev bsd-compat-headers libressl-dev libwebsockets-dev\n") ("\tvim zlib-dev") ) } spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [44] ) ] spids: [44] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz::https://github.com/tsl0922/") ($ VSub_Name "$pkgname") (/archive/) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tfix-cmake.patch") ) } spids: [50] ) ] spids: [50] ) (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: [63] ) ] spids: [63] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [(C {(mkdir)} {(-p)} {(build)}) (C {(cd)} {(build)})] op_id: Op_DAmp ) (C {(cmake)} {(..)} {(-DCMAKE_BUILD_TYPE) (Lit_Other "=") (MinSizeRel)} {(-DCMAKE_INSTALL_PREFIX) (Lit_Other "=") (/usr)} {(-DCMAKE_VERBOSE_MAKEFILE) (Lit_Other "=") (TRUE)} ) (C {(make)}) ] spids: [77] ) spids: [73 76] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/build)}) (C {(./ttyd)} {(--version)})] spids: [133] ) spids: [129 132] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/build)}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) ] spids: [156] ) spids: [152 155] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "52591fa5a0a6bda623f0437b5900d7f22ad87a904a0d04710ac2f3d5fddbb9e1311b764339483b0820e416e646a62133c7598b88573120c86dd20f98aea0dfed ttyd-1.3.3.tar.gz\n" ) ( "677f71abfec9e74db8f7976e6cb8c4eba052df71162390fa26e7c31f064a179d8587f07088eb0a5ada507a345b11af8d663162c77aad5e7fd129503eb15f83af fix-cmake.patch" ) ) } spids: [179] ) ] spids: [179] ) ] )