Skip to content

Instantly share code, notes, and snippets.

@fudanchii
Created May 25, 2025 09:41
Show Gist options
  • Save fudanchii/05aacfb6ac73a488e1b6c8ec36bedb58 to your computer and use it in GitHub Desktop.
Save fudanchii/05aacfb6ac73a488e1b6c8ec36bedb58 to your computer and use it in GitHub Desktop.
libssh2
pkgname=libssh2
pkgver=9999
pkgrel=1
gitrev=d8ae40bad07bb779482fc5d082607dfc431dd872
url="https://github.com/libssh2/libssh2"
source=("git+https://github.com/libssh2/libssh2.git#commit=${gitrev}")
sha256sums=('SKIP')
build() {
cd $pkgname
mkdir build && cd build
cmake .. "-DCMAKE_TOOLCHAIN_FILE=${VITASDK}/share/vita.toolchain.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$prefix -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCRYPTO_BACKEND=mbedTLS
make -j8
}
package () {
cd $pkgname
cd build
make DESTDIR=$pkgdir install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment