description="Brotli compression library"
url="https://github.com/google/brotli"

contributors="Fanch, Rems"
packager="tnut <tnut@nutyx.org>"

makedepends=(git cmake python)

name=brotli
version=1.0.9
release=3

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/google/brotli/archive/v$version.tar.gz)

build(){
  cd $name-$version
   
  mkdir -pv build
   
  python3 setup.py build
  python3 setup.py install --skip-build -O1 --root="$PKG"
  
  cd    ../$name-$version/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
  make 
  make DESTDIR=$PKG install
}
