summaryrefslogtreecommitdiff
path: root/brotli/Pkgfile
blob: 256f6668f04e4a954224c2390ae1a9b4ce835180 (plain)
    1 # Description: Brotli compression library
    2 # URL: https://github.com/google/brotli
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: cmake ninja
    5 
    6 name=brotli
    7 version=1.0.9
    8 release=2
    9 source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz
   10 	runtime-linker-path.patch)
   11 
   12 build() {
   13 	# https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc
   14 	patch -d $name-$version -p1 -i $SRC/runtime-linker-path.patch
   15 
   16 	cmake -S $name-$version -B build -G Ninja \
   17 		-D CMAKE_BUILD_TYPE=Release \
   18 		-D CMAKE_INSTALL_PREFIX=/usr \
   19 		-D CMAKE_INSTALL_LIBDIR=lib \
   20 		-D BUILD_SHARED_LIBS=True
   21 
   22 	cmake --build build
   23 	DESTDIR=$PKG cmake --install build
   24 
   25 	cd $name-$version
   26 	/usr/bin/python3 setup.py build
   27 	/usr/bin/python3 setup.py install \
   28 		--prefix=/usr --root=$PKG --optimize=1
   29 }

Generated by cgit