summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libtorrent/package.py
blob: cfd0a87d8883f4d82b7340c0cdbeb64d3e9baa2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2023 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.package 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"

    license("GPL-2.0-or-later")

    version("0.13.8", sha256="0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722")

    def autoreconf(self, spec, prefix):
        bash = which("bash")
        bash("./autogen.sh")