SUMMARY="A cat(1) clone with wings"
DESCRIPTION="A cat(1) clone with syntax highlighting, Git integration, and \
automatic paging."
HOMEPAGE="https://github.com/sharkdp/bat"
COPYRIGHT="2018-2019 bat developers"
LICENSE="Apache v2
	MIT"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="1dd184ddc9e5228ba94d19afc0b8b440bfc1819fef8133fe331e2c0ec9e3f8e2"
SOURCE_FILENAME="bat-$portVersion.tar.gz"

SOURCE_URI_2="https://static.crates.io/crates/adler32/adler32-1.0.3.crate"
CHECKSUM_SHA256_2="7e522997b529f05601e05166c07ed17789691f562762c7f3b987263d2dedee5c"

SOURCE_URI_3="https://static.crates.io/crates/aho-corasick/aho-corasick-0.7.6.crate"
CHECKSUM_SHA256_3="58fb5e95d83b38284460a5fda7d6470aa0b8844d283a0b614b8535e880800d2d"

SOURCE_URI_4="https://static.crates.io/crates/ansi_colours/ansi_colours-1.0.1.crate"
CHECKSUM_SHA256_4="1d0f302a81afc6a7f4350c04f0ba7cfab529cc009bca3324b3fb5764e6add8b6"

SOURCE_URI_5="https://static.crates.io/crates/ansi_term/ansi_term-0.11.0.crate"
CHECKSUM_SHA256_5="ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"

SOURCE_URI_6="https://static.crates.io/crates/ansi_term/ansi_term-0.12.1.crate"
CHECKSUM_SHA256_6="d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"

SOURCE_URI_7="https://static.crates.io/crates/arrayref/arrayref-0.3.5.crate"
CHECKSUM_SHA256_7="0d382e583f07208808f6b1249e60848879ba3543f57c32277bf52d69c2f0f0ee"

SOURCE_URI_8="https://static.crates.io/crates/arrayvec/arrayvec-0.4.11.crate"
CHECKSUM_SHA256_8="b8d73f9beda665eaa98ab9e4f7442bd4e7de6652587de55b2525e52e29c1b0ba"

SOURCE_URI_9="https://static.crates.io/crates/assert_cmd/assert_cmd-0.11.1.crate"
CHECKSUM_SHA256_9="2dc477793bd82ec39799b6f6b3df64938532fdf2ab0d49ef817eac65856a5a1e"

SOURCE_URI_10="https://static.crates.io/crates/atty/atty-0.2.13.crate"
CHECKSUM_SHA256_10="1803c647a3ec87095e7ae7acfca019e98de5ec9a7d01343f611cf3152ed71a90"

SOURCE_URI_11="https://static.crates.io/crates/autocfg/autocfg-0.1.6.crate"
CHECKSUM_SHA256_11="b671c8fb71b457dd4ae18c4ba1e59aa81793daacc361d82fcd410cef0d491875"

SOURCE_URI_12="https://static.crates.io/crates/backtrace/backtrace-0.3.35.crate"
CHECKSUM_SHA256_12="1371048253fa3bac6704bfd6bbfc922ee9bdcee8881330d40f308b81cc5adc55"

SOURCE_URI_13="https://static.crates.io/crates/backtrace-sys/backtrace-sys-0.1.31.crate"
CHECKSUM_SHA256_13="82a830b4ef2d1124a711c71d263c5abdc710ef8e907bd508c88be475cebc422b"

SOURCE_URI_14="https://static.crates.io/crates/base64/base64-0.10.1.crate"
CHECKSUM_SHA256_14="0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"

SOURCE_URI_15="https://static.crates.io/crates/bincode/bincode-1.1.4.crate"
CHECKSUM_SHA256_15="9f04a5e50dc80b3d5d35320889053637d15011aed5e66b66b37ae798c65da6f7"

SOURCE_URI_16="https://static.crates.io/crates/bindgen/bindgen-0.50.0.crate"
CHECKSUM_SHA256_16="65a913de3fa2fa95f2c593bb7e33b1be1ce1ce8a83f34b6bb02e6f01400b96cc"

SOURCE_URI_17="https://static.crates.io/crates/bitflags/bitflags-1.1.0.crate"
CHECKSUM_SHA256_17="3d155346769a6855b86399e9bc3814ab343cd3d62c7e985113d46a0ec3c281fd"

SOURCE_URI_18="https://static.crates.io/crates/blake2b_simd/blake2b_simd-0.5.7.crate"
CHECKSUM_SHA256_18="bf775a81bb2d464e20ff170ac20316c7b08a43d11dbc72f0f82e8e8d3d6d0499"

SOURCE_URI_19="https://static.crates.io/crates/byteorder/byteorder-1.3.2.crate"
CHECKSUM_SHA256_19="a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"

SOURCE_URI_20="https://static.crates.io/crates/cc/cc-1.0.41.crate"
CHECKSUM_SHA256_20="8dae9c4b8fedcae85592ba623c4fd08cfdab3e3b72d6df780c6ead964a69bfff"

SOURCE_URI_21="https://static.crates.io/crates/cexpr/cexpr-0.3.5.crate"
CHECKSUM_SHA256_21="a7fa24eb00d5ffab90eaeaf1092ac85c04c64aaf358ea6f84505b8116d24c6af"

SOURCE_URI_22="https://static.crates.io/crates/cfg-if/cfg-if-0.1.9.crate"
CHECKSUM_SHA256_22="b486ce3ccf7ffd79fdeb678eac06a9e6c09fc88d33836340becb8fffe87c5e33"

SOURCE_URI_23="https://static.crates.io/crates/clang-sys/clang-sys-0.28.1.crate"
CHECKSUM_SHA256_23="81de550971c976f176130da4b2978d3b524eaa0fd9ac31f3ceb5ae1231fb4853"

SOURCE_URI_24="https://static.crates.io/crates/clap/clap-2.33.0.crate"
CHECKSUM_SHA256_24="5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"

SOURCE_URI_25="https://static.crates.io/crates/clicolors-control/clicolors-control-1.0.1.crate"
CHECKSUM_SHA256_25="90082ee5dcdd64dc4e9e0d37fbf3ee325419e39c0092191e0393df65518f741e"

SOURCE_URI_26="https://static.crates.io/crates/cloudabi/cloudabi-0.0.3.crate"
CHECKSUM_SHA256_26="ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"

SOURCE_URI_27="https://static.crates.io/crates/console/console-0.8.0.crate"
CHECKSUM_SHA256_27="b147390a412132d75d10dd3b7b175a69cf5fd95032f7503c7091b8831ba10242"

SOURCE_URI_28="https://static.crates.io/crates/constant_time_eq/constant_time_eq-0.1.4.crate"
CHECKSUM_SHA256_28="995a44c877f9212528ccc74b21a232f66ad69001e40ede5bcee2ac9ef2657120"

SOURCE_URI_29="https://static.crates.io/crates/content_inspector/content_inspector-0.2.4.crate"
CHECKSUM_SHA256_29="b7bda66e858c683005a53a9a60c69a4aca7eeaa45d124526e389f7aec8e62f38"

SOURCE_URI_30="https://static.crates.io/crates/crc32fast/crc32fast-1.2.0.crate"
CHECKSUM_SHA256_30="ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"

SOURCE_URI_31="https://static.crates.io/crates/crossbeam-utils/crossbeam-utils-0.6.6.crate"
CHECKSUM_SHA256_31="04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"

SOURCE_URI_32="https://static.crates.io/crates/difference/difference-2.0.0.crate"
CHECKSUM_SHA256_32="524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"

SOURCE_URI_33="https://static.crates.io/crates/dirs/dirs-2.0.2.crate"
CHECKSUM_SHA256_33="13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"

SOURCE_URI_34="https://static.crates.io/crates/dirs-sys/dirs-sys-0.3.4.crate"
CHECKSUM_SHA256_34="afa0b23de8fd801745c471deffa6e12d248f962c9fd4b4c33787b055599bde7b"

SOURCE_URI_35="https://static.crates.io/crates/encode_unicode/encode_unicode-0.3.6.crate"
CHECKSUM_SHA256_35="a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f"

SOURCE_URI_36="https://static.crates.io/crates/encoding/encoding-0.2.33.crate"
CHECKSUM_SHA256_36="6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec"

SOURCE_URI_37="https://static.crates.io/crates/encoding-index-japanese/encoding-index-japanese-1.20141219.5.crate"
CHECKSUM_SHA256_37="04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91"

SOURCE_URI_38="https://static.crates.io/crates/encoding-index-korean/encoding-index-korean-1.20141219.5.crate"
CHECKSUM_SHA256_38="4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81"

SOURCE_URI_39="https://static.crates.io/crates/encoding-index-simpchinese/encoding-index-simpchinese-1.20141219.5.crate"
CHECKSUM_SHA256_39="d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7"

SOURCE_URI_40="https://static.crates.io/crates/encoding-index-singlebyte/encoding-index-singlebyte-1.20141219.5.crate"
CHECKSUM_SHA256_40="3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a"

SOURCE_URI_41="https://static.crates.io/crates/encoding-index-tradchinese/encoding-index-tradchinese-1.20141219.5.crate"
CHECKSUM_SHA256_41="fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18"

SOURCE_URI_42="https://static.crates.io/crates/encoding_index_tests/encoding_index_tests-0.1.4.crate"
CHECKSUM_SHA256_42="a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569"

SOURCE_URI_43="https://static.crates.io/crates/env_logger/env_logger-0.6.2.crate"
CHECKSUM_SHA256_43="aafcde04e90a5226a6443b7aabdb016ba2f8307c847d524724bd9b346dd1a2d3"

SOURCE_URI_44="https://static.crates.io/crates/error-chain/error-chain-0.12.1.crate"
CHECKSUM_SHA256_44="3ab49e9dcb602294bc42f9a7dfc9bc6e936fca4418ea300dbfb84fe16de0b7d9"

SOURCE_URI_45="https://static.crates.io/crates/escargot/escargot-0.4.0.crate"
CHECKSUM_SHA256_45="ceb9adbf9874d5d028b5e4c5739d22b71988252b25c9c98fe7cf9738bee84597"

SOURCE_URI_46="https://static.crates.io/crates/escargot/escargot-0.5.0.crate"
CHECKSUM_SHA256_46="74cf96bec282dcdb07099f7e31d9fed323bca9435a09aba7b6d99b7617bca96d"

SOURCE_URI_47="https://static.crates.io/crates/failure/failure-0.1.5.crate"
CHECKSUM_SHA256_47="795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2"

SOURCE_URI_48="https://static.crates.io/crates/failure_derive/failure_derive-0.1.5.crate"
CHECKSUM_SHA256_48="ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1"

SOURCE_URI_49="https://static.crates.io/crates/flate2/flate2-1.0.11.crate"
CHECKSUM_SHA256_49="2adaffba6388640136149e18ed080b77a78611c1e1d6de75aedcdf78df5d4682"

SOURCE_URI_50="https://static.crates.io/crates/fnv/fnv-1.0.6.crate"
CHECKSUM_SHA256_50="2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3"

SOURCE_URI_51="https://static.crates.io/crates/fuchsia-cprng/fuchsia-cprng-0.1.1.crate"
CHECKSUM_SHA256_51="a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"

SOURCE_URI_52="https://static.crates.io/crates/fxhash/fxhash-0.2.1.crate"
CHECKSUM_SHA256_52="c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"

SOURCE_URI_53="https://static.crates.io/crates/git2/git2-0.10.0.crate"
CHECKSUM_SHA256_53="327d698f86a7ebdfeb86a4238ccdb004828939d3a3555b6ead679541d14e36c0"

SOURCE_URI_54="https://static.crates.io/crates/glob/glob-0.3.0.crate"
CHECKSUM_SHA256_54="9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"

SOURCE_URI_55="https://static.crates.io/crates/humantime/humantime-1.2.0.crate"
CHECKSUM_SHA256_55="3ca7e5f2e110db35f93b837c81797f3714500b81d517bf20c431b16d3ca4f114"

SOURCE_URI_56="https://static.crates.io/crates/idna/idna-0.2.0.crate"
CHECKSUM_SHA256_56="02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"

SOURCE_URI_57="https://static.crates.io/crates/itoa/itoa-0.4.4.crate"
CHECKSUM_SHA256_57="501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"

SOURCE_URI_58="https://static.crates.io/crates/kernel32-sys/kernel32-sys-0.2.2.crate"
CHECKSUM_SHA256_58="7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"

SOURCE_URI_59="https://static.crates.io/crates/lazy_static/lazy_static-1.4.0.crate"
CHECKSUM_SHA256_59="e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"

SOURCE_URI_60="https://static.crates.io/crates/lazycell/lazycell-1.2.1.crate"
CHECKSUM_SHA256_60="b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f"

SOURCE_URI_61="https://static.crates.io/crates/libc/libc-0.2.62.crate"
CHECKSUM_SHA256_61="34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba"

SOURCE_URI_62="https://static.crates.io/crates/libgit2-sys/libgit2-sys-0.9.0.crate"
CHECKSUM_SHA256_62="8c2078aec6f4b16d1b89f6a72e4f6eb1e75ffa85312023291e89c6d3087bc8fb"

SOURCE_URI_63="https://static.crates.io/crates/libloading/libloading-0.5.2.crate"
CHECKSUM_SHA256_63="f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753"

SOURCE_URI_64="https://static.crates.io/crates/libz-sys/libz-sys-1.0.25.crate"
CHECKSUM_SHA256_64="2eb5e43362e38e2bca2fd5f5134c4d4564a23a5c28e9b95411652021a8675ebe"

SOURCE_URI_65="https://static.crates.io/crates/line-wrap/line-wrap-0.1.1.crate"
CHECKSUM_SHA256_65="f30344350a2a51da54c1d53be93fade8a237e545dbcc4bdbe635413f2117cab9"

SOURCE_URI_66="https://static.crates.io/crates/linked-hash-map/linked-hash-map-0.5.2.crate"
CHECKSUM_SHA256_66="ae91b68aebc4ddb91978b11a1b02ddd8602a05ec19002801c5666000e05e0f83"

SOURCE_URI_67="https://static.crates.io/crates/log/log-0.4.8.crate"
CHECKSUM_SHA256_67="14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"

SOURCE_URI_68="https://static.crates.io/crates/matches/matches-0.1.8.crate"
CHECKSUM_SHA256_68="7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"

SOURCE_URI_69="https://static.crates.io/crates/memchr/memchr-2.2.1.crate"
CHECKSUM_SHA256_69="88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"

SOURCE_URI_70="https://static.crates.io/crates/miniz-sys/miniz-sys-0.1.12.crate"
CHECKSUM_SHA256_70="1e9e3ae51cea1576ceba0dde3d484d30e6e5b86dee0b2d412fe3a16a15c98202"

SOURCE_URI_71="https://static.crates.io/crates/miniz_oxide/miniz_oxide-0.3.2.crate"
CHECKSUM_SHA256_71="7108aff85b876d06f22503dcce091e29f76733b2bfdd91eebce81f5e68203a10"

SOURCE_URI_72="https://static.crates.io/crates/nodrop/nodrop-0.1.13.crate"
CHECKSUM_SHA256_72="2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945"

SOURCE_URI_73="https://static.crates.io/crates/nom/nom-4.2.3.crate"
CHECKSUM_SHA256_73="2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6"

SOURCE_URI_74="https://static.crates.io/crates/onig/onig-5.0.0.crate"
CHECKSUM_SHA256_74="e4e723fc996fff1aeab8f62205f3e8528bf498bdd5eadb2784d2d31f30077947"

SOURCE_URI_75="https://static.crates.io/crates/onig_sys/onig_sys-69.2.0.crate"
CHECKSUM_SHA256_75="0a8d4efbf5f59cece01f539305191485b651acb3785b9d5eef05749f0496514e"

SOURCE_URI_76="https://static.crates.io/crates/peeking_take_while/peeking_take_while-0.1.2.crate"
CHECKSUM_SHA256_76="19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"

SOURCE_URI_77="https://static.crates.io/crates/percent-encoding/percent-encoding-2.1.0.crate"
CHECKSUM_SHA256_77="d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"

SOURCE_URI_78="https://static.crates.io/crates/pkg-config/pkg-config-0.3.15.crate"
CHECKSUM_SHA256_78="a7c1d2cfa5a714db3b5f24f0915e74fcdf91d09d496ba61329705dda7774d2af"

SOURCE_URI_79="https://static.crates.io/crates/plist/plist-0.4.2.crate"
CHECKSUM_SHA256_79="5f2a9f075f6394100e7c105ed1af73fb1859d6fd14e49d4290d578120beb167f"

SOURCE_URI_80="https://static.crates.io/crates/predicates/predicates-1.0.1.crate"
CHECKSUM_SHA256_80="53e09015b0d3f5a0ec2d4428f7559bb7b3fff341b4e159fedd1d57fac8b939ff"

SOURCE_URI_81="https://static.crates.io/crates/predicates-core/predicates-core-1.0.0.crate"
CHECKSUM_SHA256_81="06075c3a3e92559ff8929e7a280684489ea27fe44805174c3ebd9328dcb37178"

SOURCE_URI_82="https://static.crates.io/crates/predicates-tree/predicates-tree-1.0.0.crate"
CHECKSUM_SHA256_82="8e63c4859013b38a76eca2414c64911fba30def9e3202ac461a2d22831220124"

SOURCE_URI_83="https://static.crates.io/crates/proc-macro2/proc-macro2-0.4.30.crate"
CHECKSUM_SHA256_83="cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759"

SOURCE_URI_84="https://static.crates.io/crates/proc-macro2/proc-macro2-1.0.2.crate"
CHECKSUM_SHA256_84="175a40b9cf564ce9bf050654633dbf339978706b8ead1a907bb970b63185dd95"

SOURCE_URI_85="https://static.crates.io/crates/quick-error/quick-error-1.2.2.crate"
CHECKSUM_SHA256_85="9274b940887ce9addde99c4eee6b5c44cc494b182b97e73dc8ffdcb3397fd3f0"

SOURCE_URI_86="https://static.crates.io/crates/quote/quote-0.6.13.crate"
CHECKSUM_SHA256_86="6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1"

SOURCE_URI_87="https://static.crates.io/crates/quote/quote-1.0.2.crate"
CHECKSUM_SHA256_87="053a8c8bcc71fcce321828dc897a98ab9760bef03a4fc36693c231e5b3216cfe"

SOURCE_URI_88="https://static.crates.io/crates/rand/rand-0.4.6.crate"
CHECKSUM_SHA256_88="552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293"

SOURCE_URI_89="https://static.crates.io/crates/rand_core/rand_core-0.3.1.crate"
CHECKSUM_SHA256_89="7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"

SOURCE_URI_90="https://static.crates.io/crates/rand_core/rand_core-0.4.2.crate"
CHECKSUM_SHA256_90="9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"

SOURCE_URI_91="https://static.crates.io/crates/rand_os/rand_os-0.1.3.crate"
CHECKSUM_SHA256_91="7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"

SOURCE_URI_92="https://static.crates.io/crates/rdrand/rdrand-0.4.0.crate"
CHECKSUM_SHA256_92="678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"

SOURCE_URI_93="https://static.crates.io/crates/redox_syscall/redox_syscall-0.1.56.crate"
CHECKSUM_SHA256_93="2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"

SOURCE_URI_94="https://static.crates.io/crates/redox_users/redox_users-0.3.1.crate"
CHECKSUM_SHA256_94="4ecedbca3bf205f8d8f5c2b44d83cd0690e39ee84b951ed649e9f1841132b66d"

SOURCE_URI_95="https://static.crates.io/crates/regex/regex-1.2.1.crate"
CHECKSUM_SHA256_95="88c3d9193984285d544df4a30c23a4e62ead42edf70a4452ceb76dac1ce05c26"

SOURCE_URI_96="https://static.crates.io/crates/regex-syntax/regex-syntax-0.6.11.crate"
CHECKSUM_SHA256_96="b143cceb2ca5e56d5671988ef8b15615733e7ee16cd348e064333b251b89343f"

SOURCE_URI_97="https://static.crates.io/crates/remove_dir_all/remove_dir_all-0.5.2.crate"
CHECKSUM_SHA256_97="4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e"

SOURCE_URI_98="https://static.crates.io/crates/rust-argon2/rust-argon2-0.5.1.crate"
CHECKSUM_SHA256_98="4ca4eaef519b494d1f2848fc602d18816fed808a981aedf4f1f00ceb7c9d32cf"

SOURCE_URI_99="https://static.crates.io/crates/rustc-demangle/rustc-demangle-0.1.16.crate"
CHECKSUM_SHA256_99="4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"

SOURCE_URI_100="https://static.crates.io/crates/ryu/ryu-1.0.0.crate"
CHECKSUM_SHA256_100="c92464b447c0ee8c4fb3824ecc8383b81717b9f1e74ba2e72540aef7b9f82997"

SOURCE_URI_101="https://static.crates.io/crates/safemem/safemem-0.3.2.crate"
CHECKSUM_SHA256_101="d2b08423011dae9a5ca23f07cf57dac3857f5c885d352b76f6d95f4aea9434d0"

SOURCE_URI_102="https://static.crates.io/crates/same-file/same-file-1.0.5.crate"
CHECKSUM_SHA256_102="585e8ddcedc187886a30fa705c47985c3fa88d06624095856b36ca0b82ff4421"

SOURCE_URI_103="https://static.crates.io/crates/serde/serde-1.0.99.crate"
CHECKSUM_SHA256_103="fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f"

SOURCE_URI_104="https://static.crates.io/crates/serde_derive/serde_derive-1.0.99.crate"
CHECKSUM_SHA256_104="cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425"

SOURCE_URI_105="https://static.crates.io/crates/serde_json/serde_json-1.0.40.crate"
CHECKSUM_SHA256_105="051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"

SOURCE_URI_106="https://static.crates.io/crates/shell-words/shell-words-0.1.0.crate"
CHECKSUM_SHA256_106="39acde55a154c4cd3ae048ac78cc21c25f3a0145e44111b523279113dce0d94a"

SOURCE_URI_107="https://static.crates.io/crates/shlex/shlex-0.1.1.crate"
CHECKSUM_SHA256_107="7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2"

SOURCE_URI_108="https://static.crates.io/crates/smallvec/smallvec-0.6.10.crate"
CHECKSUM_SHA256_108="ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"

SOURCE_URI_109="https://static.crates.io/crates/strsim/strsim-0.8.0.crate"
CHECKSUM_SHA256_109="8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"

SOURCE_URI_110="https://static.crates.io/crates/syn/syn-0.15.44.crate"
CHECKSUM_SHA256_110="9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5"

SOURCE_URI_111="https://static.crates.io/crates/syn/syn-1.0.5.crate"
CHECKSUM_SHA256_111="66850e97125af79138385e9b88339cbcd037e3f28ceab8c5ad98e64f0f1f80bf"

SOURCE_URI_112="https://static.crates.io/crates/synstructure/synstructure-0.10.2.crate"
CHECKSUM_SHA256_112="02353edf96d6e4dc81aea2d8490a7e9db177bf8acb0e951c24940bf866cb313f"

SOURCE_URI_113="https://static.crates.io/crates/syntect/syntect-3.2.1.crate"
CHECKSUM_SHA256_113="fb5b18814fd5c81187d0b01b60a5b57e9577d6dc1e5e0b104443930005179e46"

SOURCE_URI_114="https://static.crates.io/crates/tempdir/tempdir-0.3.7.crate"
CHECKSUM_SHA256_114="15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8"

SOURCE_URI_115="https://static.crates.io/crates/term_size/term_size-0.3.1.crate"
CHECKSUM_SHA256_115="9e5b9a66db815dcfd2da92db471106457082577c3c278d4138ab3e3b4e189327"

SOURCE_URI_116="https://static.crates.io/crates/termcolor/termcolor-1.0.5.crate"
CHECKSUM_SHA256_116="96d6098003bde162e4277c70665bd87c326f5a0c3f3fbfb285787fa482d54e6e"

SOURCE_URI_117="https://static.crates.io/crates/termios/termios-0.3.1.crate"
CHECKSUM_SHA256_117="72b620c5ea021d75a735c943269bb07d30c9b77d6ac6b236bc8b5c496ef05625"
PATCHES_117="termios-0.3.1.patchset"

SOURCE_URI_118="https://static.crates.io/crates/textwrap/textwrap-0.11.0.crate"
CHECKSUM_SHA256_118="d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"

SOURCE_URI_119="https://static.crates.io/crates/thread_local/thread_local-0.3.6.crate"
CHECKSUM_SHA256_119="c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"

SOURCE_URI_120="https://static.crates.io/crates/treeline/treeline-0.1.0.crate"
CHECKSUM_SHA256_120="a7f741b240f1a48843f9b8e0444fb55fb2a4ff67293b50a9179dfd5ea67f8d41"

SOURCE_URI_121="https://static.crates.io/crates/unicode-bidi/unicode-bidi-0.3.4.crate"
CHECKSUM_SHA256_121="49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"

SOURCE_URI_122="https://static.crates.io/crates/unicode-normalization/unicode-normalization-0.1.8.crate"
CHECKSUM_SHA256_122="141339a08b982d942be2ca06ff8b076563cbe223d1befd5450716790d44e2426"

SOURCE_URI_123="https://static.crates.io/crates/unicode-width/unicode-width-0.1.6.crate"
CHECKSUM_SHA256_123="7007dbd421b92cc6e28410fe7362e2e0a2503394908f417b68ec8d1c364c4e20"

SOURCE_URI_124="https://static.crates.io/crates/unicode-xid/unicode-xid-0.1.0.crate"
CHECKSUM_SHA256_124="fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"

SOURCE_URI_125="https://static.crates.io/crates/unicode-xid/unicode-xid-0.2.0.crate"
CHECKSUM_SHA256_125="826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c"

SOURCE_URI_126="https://static.crates.io/crates/url/url-2.1.0.crate"
CHECKSUM_SHA256_126="75b414f6c464c879d7f9babf951f23bc3743fb7313c081b2e6ca719067ea9d61"

SOURCE_URI_127="https://static.crates.io/crates/vcpkg/vcpkg-0.2.7.crate"
CHECKSUM_SHA256_127="33dd455d0f96e90a75803cfeb7f948768c08d70a6de9a8d2362461935698bf95"

SOURCE_URI_128="https://static.crates.io/crates/vec_map/vec_map-0.8.1.crate"
CHECKSUM_SHA256_128="05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a"

SOURCE_URI_129="https://static.crates.io/crates/version_check/version_check-0.1.5.crate"
CHECKSUM_SHA256_129="914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"

SOURCE_URI_130="https://static.crates.io/crates/walkdir/walkdir-2.2.9.crate"
CHECKSUM_SHA256_130="9658c94fa8b940eab2250bd5a457f9c48b748420d71293b165c8cdbe2f55f71e"

SOURCE_URI_131="https://static.crates.io/crates/which/which-2.0.1.crate"
CHECKSUM_SHA256_131="b57acb10231b9493c8472b20cb57317d0679a49e0bdbee44b3b803a6473af164"

SOURCE_URI_132="https://static.crates.io/crates/wild/wild-2.0.2.crate"
CHECKSUM_SHA256_132="97d34fecce28871e5c0e059deae21ef7f7d13b98a5964b24c58b3735c8052fc8"

SOURCE_URI_133="https://static.crates.io/crates/winapi/winapi-0.2.8.crate"
CHECKSUM_SHA256_133="167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"

SOURCE_URI_134="https://static.crates.io/crates/winapi/winapi-0.3.8.crate"
CHECKSUM_SHA256_134="8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6"

SOURCE_URI_135="https://static.crates.io/crates/winapi-build/winapi-build-0.1.1.crate"
CHECKSUM_SHA256_135="2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"

SOURCE_URI_136="https://static.crates.io/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate"
CHECKSUM_SHA256_136="ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"

SOURCE_URI_137="https://static.crates.io/crates/winapi-util/winapi-util-0.1.2.crate"
CHECKSUM_SHA256_137="7168bab6e1daee33b4557efd0e95d5ca70a03706d39fa5f3fe7a236f584b03c9"

SOURCE_URI_138="https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate"
CHECKSUM_SHA256_138="712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"

SOURCE_URI_139="https://static.crates.io/crates/wincolor/wincolor-1.0.2.crate"
CHECKSUM_SHA256_139="96f5016b18804d24db43cebf3c77269e7569b8954a8464501c216cc5e070eaa9"

SOURCE_URI_140="https://static.crates.io/crates/xml-rs/xml-rs-0.8.0.crate"
CHECKSUM_SHA256_140="541b12c998c5b56aa2b4e6f18f03664eef9a4fd0a246a55594efae6cc2d964b5"

SOURCE_URI_141="https://static.crates.io/crates/yaml-rust/yaml-rust-0.4.3.crate"
CHECKSUM_SHA256_141="65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c4434d"

ARCHITECTURES="all !x86_gcc2 ?x86"
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$prefix/bin
fi

PROVIDES="
	bat$secondaryArchSuffix = $portVersion
	cmd:bat
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libclang$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:cargo$secondaryArchSuffix
	cmd:gcc$secondaryArchSuffix
	cmd:llvm_config
	cmd:sed
	"

defineDebugInfoPackage bat$secondaryArchSuffix \
	"$commandBinDir"/bat

BUILD()
{
	export CARGO_HOME=$sourceDir/../cargo
	vendor=$CARGO_HOME/haiku
	mkdir -p "$vendor"
	for i in $(seq 2 141); do
		eval "srcDir=\$sourceDir$i"
		eval "sha256sum=\$CHECKSUM_SHA256_$i"
		set -- "$srcDir"/*
		ln -sf "$1" "$vendor"
		cat <<-EOF >"$vendor/${1##*/}/.cargo-checksum.json"
		{
		  "package": "$sha256sum",
		  "files": {}
		}
		EOF
	done

	cat <<-EOF >"$CARGO_HOME"/config
	[source.haiku]
	directory = "$vendor"

	[source.crates-io]
	replace-with = "haiku"
	EOF

	export LIBCLANG_PATH=$(finddir B_SYSTEM_DEVELOP_DIRECTORY)/lib$secondaryArchSubDir
	cargo build --release --frozen
}

INSTALL()
{
	install -m 755 -d "$commandBinDir" "$docDir" "$manDir/man1"
	install -m 755 target/release/bat "$commandBinDir"
	install -m 644 README.md "$docDir"
	install -m 644 doc/bat.1 "$manDir/man1"
}

TEST()
{
	export CARGO_HOME=$sourceDir/../cargo
	cargo test --release --frozen
}
