compat-32/brotli-32/Pkgfile

21 lines
522 B
Plaintext
Raw Normal View History

2019-05-23 14:13:13 +02: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
2020-09-12 07:04:42 +02:00
version=1.0.9
2019-05-23 14:13:13 +02:00
release=1
source=(https://github.com/google/${name%-*}/archive/v$version/${name%-*}-v$version.tar.gz)
build() {
2020-09-12 07:04:42 +02:00
cmake -S${name%-*}-$version -Bbuild -GNinja \
2019-05-23 14:13:13 +02:00
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib32"
2020-09-12 07:04:42 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-05-23 14:13:13 +02:00
rm -r $PKG/usr/{bin,include}
}