libtorrent: add new package at v0.13.8 (#22130)

This commit is contained in:
darmac 2021-03-20 22:16:09 +08:00 committed by GitHub
parent 17e51b2989
commit 46469786d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,20 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libtorrent(AutotoolsPackage):
"""LibTorrent is a BitTorrent library written in C++,
with a focus on high performance and good code."""
homepage = "https://github.com/rakshasa/libtorrent"
url = "https://github.com/rakshasa/libtorrent/archive/v0.13.8.tar.gz"
version('0.13.8', sha256='0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722')
def autoreconf(self, spec, prefix):
bash = which('bash')
bash('./autogen.sh')