opt/brotli/Pkgfile

19 lines
462 B
Plaintext
Raw Normal View History

2018-04-02 07:06:55 +02:00
# Description: Brotli compression library
# URL: https://github.com/google/brotli
# Maintainer: Danny Rawlins, crux at romster dot me
2020-08-31 11:38:18 +02:00
# Depends on: cmake ninja
2018-04-02 07:06:55 +02:00
name=brotli
2020-08-31 11:38:18 +02:00
version=1.0.9
2018-04-02 07:06:55 +02:00
release=1
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz)
build() {
2020-08-31 11:38:18 +02:00
cmake -S$name-$version -Bbuild -GNinja \
2018-04-02 07:06:55 +02:00
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib"
2020-08-31 11:38:18 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2018-04-02 07:06:55 +02:00
}