File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11pkgname=switch-libsmb2
2- pkgver=4 .0.0
2+ pkgver=6 .0.0
33pkgrel=1
44pkgdesc=" SMB2/3 userspace client"
55url=" https://github.com/sahlberg/libsmb2"
66license=(' LGPL' )
77arch=(' any' )
88options=(! strip libtool staticlibs)
99groups=(' switch-portlibs' )
10- source=(" ${url} /archive/refs/tags/v${pkgver} .tar.gz" " switch.patch " )
10+ source=(" ${url} /archive/refs/tags/v${pkgver} .tar.gz" )
1111sha256sums=(
12- ' b4d1b13bc07adc68379a72f723b9032a950afd62fed7f2aa3e57f3421406da11'
13- ' 151d92ffdc8a8dce581baf7cc6f10e4096fd73497da172aaaee8e02d7d690d4b'
12+ ' c65a7a2b7a6e967a4fd5b6168fca4f1f7d0362a3510767700609c770e3ead1e8'
1413)
1514
1615prepare () {
1716 cd " libsmb2-${pkgver} "
18- patch -Np1 -i " $srcdir /switch.patch"
17+
18+ source ${DEVKITPRO} /switchvars.sh
19+
20+ cmake -S . -B build " -DCMAKE_TOOLCHAIN_FILE=${DEVKITPRO} /cmake/Switch.cmake"
1921}
2022
2123build () {
2224 cd " libsmb2-${pkgver} "
2325
2426 source ${DEVKITPRO} /switchvars.sh
2527
26- ./bootstrap
27-
28- ./configure --prefix=" ${PORTLIBS_PREFIX} " --host=aarch64-none-elf \
29- --disable-shared --enable-static --without-libkrb5 --disable-werror
30-
31- make
28+ make -C build
3229}
3330
3431package () {
3532 cd " libsmb2-${pkgver} "
3633
3734 source /opt/devkitpro/switchvars.sh
3835
39- make DESTDIR=" ${pkgdir} " install
36+ make -C build DESTDIR=" ${pkgdir} " install
4037 install -Dm644 COPYING " ${pkgdir} /opt/devkitpro/portlibs/switch/licenses/${pkgname} /LICENSE"
4138}
You can’t perform that action at this time.
0 commit comments