File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change 1
1
pkgname=libzstd
2
- pkgver=1.5.6
2
+ pkgver=1.5.7
3
3
pkgrel=1
4
4
url='https://facebook.github.io/zstd/'
5
5
source=("https://github.com/facebook/zstd/releases/download/v$pkgver/zstd-$pkgver.tar.gz")
6
- sha256sums=('8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1')
6
+ sha256sums=('eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3')
7
+
8
+ prepare() {
9
+ cd zstd-$pkgver
10
+ sed -i "s/POSITION_INDEPENDENT_CODE On/POSITION_INDEPENDENT_CODE OFF/" build/cmake/lib/CMakeLists.txt
11
+ }
12
+
7
13
build() {
8
- cd zstd-$pkgver/lib
14
+ cd zstd-$pkgver
15
+
16
+ mkdir _build && cd _build
17
+
18
+ cmake ../build/cmake \
19
+ -DCMAKE_BUILD_TYPE=Release \
20
+ -DCMAKE_INSTALL_PREFIX=$prefix \
21
+ -DCMAKE_TOOLCHAIN_FILE=$VITASDK/share/vita.toolchain.cmake \
22
+ -DZSTD_BUILD_PROGRAMS=OFF \
23
+ -DZSTD_BUILD_STATIC=ON \
24
+ -DZSTD_BUILD_SHARED=OFF
9
25
10
- make CC=arm-vita-eabi-gcc PREFIX=${prefix} libzstd.a libzstd.pc
26
+ make -j$(nproc)
11
27
}
12
28
13
29
package() {
14
- cd zstd-$pkgver/lib
15
- make DESTDIR=" $pkgdir" PREFIX=${prefix} install-pc install-static install-includes
30
+ cd zstd-$pkgver/_build
31
+ make DESTDIR=$pkgdir install
16
32
}
You can’t perform that action at this time.
0 commit comments