21 lines
522 B
Plaintext
Raw Permalink Normal View History

2019-05-23 22:13:13 +10:00
# Description: Brotli compression library
# URL: https://github.com/google/brotli
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: brotli
name=brotli-32
2023-08-31 23:05:25 +02:00
version=1.1.0
2019-05-23 22:13:13 +10:00
release=1
source=(https://github.com/google/${name%-*}/archive/v$version/${name%-*}-v$version.tar.gz)
build() {
2020-09-12 15:04:42 +10:00
cmake -S${name%-*}-$version -Bbuild -GNinja \
2019-05-23 22:13:13 +10:00
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib32"
2020-09-12 15:04:42 +10:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-05-23 22:13:13 +10:00
rm -r $PKG/usr/{bin,include}
}