summaryrefslogtreecommitdiff
path: root/Ports/libssh2/package.sh
blob: 0684cc86bd76fc87db75a73a020411f362e081e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env -S bash ../.port_include.sh
port=libssh2
version=1.10.0
useconfigure=true
files="https://www.libssh2.org/download/libssh2-${version}.tar.gz libssh2-${version}.tar.gz
https://www.libssh2.org/download/libssh2-${version}.tar.gz.asc libssh2-${version}.tar.gz.asc"
depends=("libgcrypt")
auth_type="sig"
auth_import_key="27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2"
auth_opts=("libssh2-${version}.tar.gz.asc" "libssh2-${version}.tar.gz")
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-GNinja")

configure() {
    run cmake "${configopts[@]}" .
}

build() {
    run ninja
}

install() {
    run ninja install
}