File: build-libtorrent

package info (click to toggle)
btfs 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: cpp: 979; python: 72; makefile: 24; sh: 7
file content (25 lines) | stat: -rwxr-xr-x 943 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# Copyright 2017 Johan Gunnarsson <johan.gunnarsson@gmail.com>
#
# This file is part of BTFS.
#
# BTFS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# BTFS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BTFS.  If not, see <http://www.gnu.org/licenses/>.

git clone --recurse-submodules -b "${1:-master}" https://github.com/arvidn/libtorrent.git &&
cd libtorrent &&
mkdir build &&
cd build &&
cmake -DCMAKE_INSTALL_PREFIX="${2:-/tmp}" -G "Unix Makefiles" .. &&
make &&
make install