(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgname)
          op: assign_op.Equal
          rhs: {<handbrake>}
          spids: [3]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:_pkgname)
          op: assign_op.Equal
          rhs: {<HandBrake>}
          spids: [6]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgver)
          op: assign_op.Equal
          rhs: {<1.0.7>}
          spids: [9]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgrel)
          op: assign_op.Equal
          rhs: {<3>}
          spids: [12]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:pkgdesc)
          op: assign_op.Equal
          rhs: {(DQ <'Handbrake video transcoder'>)}
          spids: [15]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:url)
          op: assign_op.Equal
          rhs: {(DQ <'https://handbrake.fr'>)}
          spids: [20]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:arch)
          op: assign_op.Equal
          rhs: {(DQ <'x86_64 x86 armhf ppc64le'>)}
          spids: [25]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:license)
          op: assign_op.Equal
          rhs: {(DQ <GPL2>)}
          spids: [30]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:makedepends)
          op: assign_op.Equal
          rhs: 
            {
              (DQ <'yasm autoconf libtool zlib-dev libbz2 libogg-dev libtheora-dev\n'> 
                <'\tlibvorbis-dev libsamplerate-dev fribidi-dev freetype-dev\n'> <'\ttinyxml-dev fontconfig-dev libass-dev intltool glib-dev dbus-glib-dev\n'> 
                <'\tgtk+3.0-dev libgudev-dev libnotify-dev libdvdread-dev\n'> <'\tgstreamer0.10-dev x264-dev lame-dev linux-headers cmake\n'> 
                <'\tautoconf automake ffmpeg-dev coreutils libdvdnav-dev\n'> <'\tlibbluray-dev x265-dev libvpx-dev fdk-aac-dev jansson-dev\n'> <'\topus-dev'>
              )
            }
          spids: [35]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:subpackages)
          op: assign_op.Equal
          rhs: 
            {
              (DQ ($ Id.VSub_DollarName '$pkgname') <'-lang '> ($ Id.VSub_DollarName '$pkgname') <-gtk>)
            }
          spids: [47]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:source)
          op: assign_op.Equal
          rhs: 
            {
              (DQ <'http://download.handbrake.fr/releases/'> ($ Id.VSub_DollarName '$pkgver') 
                <'/HandBrake-'> ($ Id.VSub_DollarName '$pkgver') <'.tar.bz2\n'> <'\thandbrake-9999-fix-missing-x265-link-flag.patch\n'> 
                <'\thandbrake-9999-remove-dvdnav-dup.patch\n'> <'\thandbrake-9999-remove-faac-dependency.patch\n'> <'\t'>
              )
            }
          spids: [55]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:options)
          op: assign_op.Equal
          rhs: {(DQ <'!check'>)}
          spids: [68]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:builddir)
          op: assign_op.Equal
          rhs: 
            {(DQ ($ Id.VSub_DollarName '$srcdir')) <'/'> (${ Id.VSub_Name _pkgname) <-> 
              (${ Id.VSub_Name pkgver)
            }
          spids: [73]
        )
      ]
    )
    (command.ShFunction
      name: prepare
      body: 
        (BraceGroup
          children: [
            (C {<update_config_guess>})
            (C {<cd>} {(DQ ($ Id.VSub_DollarName '$builddir'))})
            (C {<default_prepare>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<sed>} {<-i>} {(SQ <'s:.*contrib/.*::g'>)} {<'make/include/main.defs'>})
                (C {<die>} {(DQ <'Contrib removal failed.'>)})
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: build
      body: 
        (BraceGroup
          children: [
            (C {<cd>} {(DQ ($ Id.VSub_DollarName '$builddir'))})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<'./configure'>} {<--prefix> <Id.Lit_Equals '='> <'/usr'>} {<--force>} {<--verbose>} 
                  {<--disable-gtk-update-checks>}
                )
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
            (C {<cd>} {<build>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<make>})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: package
      body: 
        (BraceGroup
          children: [
            (C {<cd>} {(DQ ($ Id.VSub_DollarName '$builddir')) <'/build'>})
            (C {<make>} {<-j1>} {<install>} 
              {<Id.Lit_VarLike 'DESTDIR='> (DQ ($ Id.VSub_DollarName '$pkgdir'))}
            )
          ]
        )
    )
    (command.ShFunction
      name: gtk
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:pkgdesc)
                  op: assign_op.Equal
                  rhs: {(DQ <'HandBrake Video Transcoder - GUI'>)}
                  spids: [230]
                )
              ]
            )
            (C {<install>} {<-d>} {(DQ ($ Id.VSub_DollarName '$subpkgdir')) <'/usr/bin'>})
            (C {<mv>} {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/usr/bin/ghb'>} 
              {(DQ ($ Id.VSub_DollarName '$subpkgdir')) <'/usr/bin/ghb'>}
            )
            (C {<mv>} {(DQ ($ Id.VSub_DollarName '$pkgdir')) <'/usr/share'>} 
              {(DQ ($ Id.VSub_DollarName '$subpkgdir')) <'/usr'>}
            )
          ]
        )
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:sha512sums)
          op: assign_op.Equal
          rhs: 
            {
              (DQ 
                <
'bacc5ff105893a0fdea95174839663e00027c87a13f00fb67d39c347b55e35869c0b998ec52181389b98cc2cc358d221e41d729e76952e4cb21fe8d12ee5a44a  HandBrake-1.0.7.tar.bz2\n'
                > 
                <
'9ca716b290f384db839609d176b6883c4dc1aaf31206b206cfd1f29c85bb134e29fbf72bda1a8589f76e1885019dbdee5a39d8299f7f0a20a6ef8a01868f4845  handbrake-9999-fix-missing-x265-link-flag.patch\n'
                > 
                <
'a3d57dd37d518286a62554cfcc4722d6fd588a0c3966d30785100edc4476febb2b48fc4f9b2a7eb5b5dc049043fabd4398e1e190e10cbd63c25b2936824977d3  handbrake-9999-remove-dvdnav-dup.patch\n'
                > 
                <
'9d070e50a9b7d4b8ac25b7d56bd341aca6dc979ba506c84f4b95109909f70020723915cd120bed24e84a8fc242ee3c3a5775f43a78b7995e53cd499444c9f6dc  handbrake-9999-remove-faac-dependency.patch'
                >
              )
            }
          spids: [276]
        )
      ]
    )
  ]
)