brotli: adopted port

This commit is contained in:
Tim Biermann 2023-08-27 17:50:25 +02:00
parent ef3dced97a
commit 8e3fa5040e
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/fow+1A5qolZJMERYhzbtvDQs2m+nDC1UnWeIQ+wgqQIN1fBDNl62WPeHO7gKycigBVeUvX3yH+TiBkX5ZWmHgk=
SHA256 (Pkgfile) = a9d0908aecf35292afea7baeab5c954fcf59f5fb68f0ff91af3af27bb981e337
RWSE3ohX2g5d/ajmxBowpkL3ILeL7a3J9+YTJfg6cU5ovB8H8S9geCGvZa14LX0sktp2BVHsVyK8z6YK2798px5HXuZhcWkTgwg=
SHA256 (Pkgfile) = 4bff1f6862601d9b3eedaef1d2e69aafc66fe8d576e16dfd87bfcb0056db0635
SHA256 (.footprint) = f268d7e8e75523d42a14c6279fe29d053fd2dcf2b4cc19a8906d360731956bf7
SHA256 (brotli-v1.0.9.tar.gz) = f9e8d81d0405ba66d181529af42a3354f838c939095ff99930da6aa9cdf6fe46
SHA256 (runtime-linker-path.patch) = 0b1c8045b4fa745e620b5c1a75377f9cda839fbb07c90bf3358b583866f063ee

View File

@ -1,29 +1,29 @@
# Description: Brotli compression library
# URL: https://github.com/google/brotli
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: cmake ninja
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:
name=brotli
version=1.0.9
release=2
source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz
runtime-linker-path.patch)
runtime-linker-path.patch)
build() {
# https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc
patch -d $name-$version -p1 -i $SRC/runtime-linker-path.patch
# https://github.com/google/brotli/commit/09b0992b6acb7faa6fd3b23f9bc036ea117230fc
patch -d $name-$version -p1 -i $SRC/runtime-linker-path.patch
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D BUILD_SHARED_LIBS=True
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D BUILD_SHARED_LIBS=True
cmake --build build
DESTDIR=$PKG cmake --install build
cmake --build build
DESTDIR=$PKG cmake --install build
cd $name-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install \
--prefix=/usr --root=$PKG --optimize=1
cd $name-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install \
--prefix=/usr --root=$PKG --optimize=1
}