Skip to content

Commit 5e48151

Browse files
committed
Update PKGBUILD for libsmb2
1 parent 73a86ee commit 5e48151

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

misc/libsmb2/PKGBUILD

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
11
pkgname=switch-libsmb2
2-
pkgver=4.0.0
2+
pkgver=6.0.0
33
pkgrel=1
44
pkgdesc="SMB2/3 userspace client"
55
url="https://github.com/sahlberg/libsmb2"
66
license=('LGPL')
77
arch=('any')
88
options=(!strip libtool staticlibs)
99
groups=('switch-portlibs')
10-
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz" "switch.patch")
10+
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
1111
sha256sums=(
12-
'b4d1b13bc07adc68379a72f723b9032a950afd62fed7f2aa3e57f3421406da11'
13-
'151d92ffdc8a8dce581baf7cc6f10e4096fd73497da172aaaee8e02d7d690d4b'
12+
'c65a7a2b7a6e967a4fd5b6168fca4f1f7d0362a3510767700609c770e3ead1e8'
1413
)
1514

1615
prepare() {
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

2123
build() {
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

3431
package() {
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
}

0 commit comments

Comments
 (0)