# Contributor:Jean-Louis Fuchs # Maintainer: Jean-Louis Fuchs global pkgname := 'blind' global pkgver := '1.1' global pkgrel := '1' global pkgdesc := '"blind is a collection of command line video editing utilities'" global url := '"http://tools.suckless.org/blind/'" global arch := '"all'" global license := '"ISC'" global checkdepends := '"ffmpeg'" global subpackages := ""$pkgname-doc"" global source := ""http://dl.suckless.org/tools/blind-$pkgver.tar.gz fix-readall.patch test.ff.bz2 "" global builddir := ""$srcdir/blind-$pkgver"" proc build { cd $builddir make } proc check { cd $builddir # Check if blind is operational bunzip2 < "$srcdir/test.ff.bz2" | ./blind-from-image -f > test.bl ./blind-repeat 15 test.bl | ./blind-flop | ./blind-flip \ | ./blind-dissolve | ./blind-to-video 50 -c:v libx264 -preset fast -crf 0 \ -pix_fmt yuv444p out.mp4 rm test.bl out.mp4 } proc package { cd $builddir make PREFIX="/usr" DESTDIR="$pkgdir" install cp blind-rotate-* "$pkgdir/usr/bin/" } global md5sums := '"46370b2da4997fb9dda6653cf81f5cf0 blind-1.1.tar.gz 17ca341f9ec9fa29680e07af1552122d fix-readall.patch 433d1680f8820eb0b21f143948498fbb test.ff.bz2'" global sha256sums := '"24f903ccb5e118d75f38d3ae0d85fed909749f978bff47ff6973ee1bfddfcc5a blind-1.1.tar.gz 2a5835b376838062e6858ce5ea0953eefdbe560bfa37e2bed3cb39bdbb3da1b6 fix-readall.patch 5fdb176ad0653d3d6b3ce332deeaeff01a69ea0fed4cd9967b41a73a47cec19a test.ff.bz2'" global sha512sums := '"620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637 blind-1.1.tar.gz cc5ef6e5d84202a4194b4858177d7385674208338de5ce68918838d162ad57bc89f738484bda3bdb2e121fb75029fe74bbf460e92d0ba6b3a678883f151002f9 fix-readall.patch 0834032e1e416824883658478b8cc2821df9b41cf4f169f471df0476c35dfe4a6bcc9c103e5522e54d7f820f77710e3215c691fa39311f6be3310cb1745e2b73 test.ff.bz2'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(blind)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.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 ("blind is a collection of command line video editing utilities"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://tools.suckless.org/blind/"))} 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 (ISC))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:checkdepends) op:Equal rhs:{(DQ (ffmpeg))} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://dl.suckless.org/tools/blind-") ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tfix-readall.patch\n") ("\ttest.ff.bz2\n") ) } spids: [46] ) ] spids: [46] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/blind-) ($ VSub_Name "$pkgver"))} spids: [55] ) ] spids: [55] ) (FuncDef name: build body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)})] spids: [67] ) spids: [63 66] ) (FuncDef name: check body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (Pipeline children: [ (SimpleCommand words: [{(bunzip2)}] redirects: [ (Redir op_id: Redir_Less fd: -1 arg_word: {(DQ ($ VSub_Name "$srcdir") (/test.ff.bz2))} spids: [102] ) ] ) (SimpleCommand words: [{(./blind-from-image)} {(-f)}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(test.bl)} spids:[115])] ) ] negated: False ) (Pipeline children: [ (C {(./blind-repeat)} {(15)} {(test.bl)}) (C {(./blind-flop)}) (C {(./blind-flip)}) (C {(./blind-dissolve)}) (C {(./blind-to-video)} {(50)} {(-c) (Lit_Other ":") (v)} {(libx264)} {(-preset)} {(fast)} {(-crf)} {(0)} {(-pix_fmt)} {(yuv444p)} {(out.mp4)} ) ] negated: False ) (C {(rm)} {(test.bl)} {(out.mp4)}) ] spids: [86] ) spids: [82 85] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "PREFIX=") (DQ (/usr))} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)} ) (C {(cp)} {(blind-rotate-) (Lit_Other "*")} {(DQ ($ VSub_Name "$pkgdir") (/usr/bin/))}) ] spids: [182] ) spids: [178 181] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("46370b2da4997fb9dda6653cf81f5cf0 blind-1.1.tar.gz\n") ("17ca341f9ec9fa29680e07af1552122d fix-readall.patch\n") ("433d1680f8820eb0b21f143948498fbb test.ff.bz2") ) } spids: [220] ) ] spids: [220] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "24f903ccb5e118d75f38d3ae0d85fed909749f978bff47ff6973ee1bfddfcc5a blind-1.1.tar.gz\n" ) ("2a5835b376838062e6858ce5ea0953eefdbe560bfa37e2bed3cb39bdbb3da1b6 fix-readall.patch\n") ("5fdb176ad0653d3d6b3ce332deeaeff01a69ea0fed4cd9967b41a73a47cec19a test.ff.bz2") ) } spids: [227] ) ] spids: [227] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637 blind-1.1.tar.gz\n" ) ( "cc5ef6e5d84202a4194b4858177d7385674208338de5ce68918838d162ad57bc89f738484bda3bdb2e121fb75029fe74bbf460e92d0ba6b3a678883f151002f9 fix-readall.patch\n" ) ( "0834032e1e416824883658478b8cc2821df9b41cf4f169f471df0476c35dfe4a6bcc9c103e5522e54d7f820f77710e3215c691fa39311f6be3310cb1745e2b73 test.ff.bz2" ) ) } spids: [234] ) ] spids: [234] ) ] )