brotli 1.1.0-3
This commit is contained in:
parent
f097e5609b
commit
e6751bd7bc
47
PKGBUILD
47
PKGBUILD
@ -4,36 +4,51 @@
|
||||
# then please put 'unknown'.
|
||||
|
||||
# Maintainer: Future Linux Team <future_linux@163.com>
|
||||
pkgname=brotli
|
||||
pkgname=(brotli python-brotli)
|
||||
pkgbase=brotli
|
||||
pkgver=1.1.0
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Generic-purpose lossless compression algorithm"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/google/brotli"
|
||||
license=('MIT')
|
||||
depends=('glibc' 'python')
|
||||
makedepends=('cmake' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
||||
source=(https://github.com/google/brotli/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
||||
source=(https://github.com/google/brotli/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
|
||||
sha256sums=(e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff)
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
cd ${pkgbase}-${pkgver}
|
||||
|
||||
python3 -m build --wheel --no-isolation
|
||||
python3 -m build --wheel --no-isolation
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib64 \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
|
||||
-Bbuild
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib64 \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS -ffat-lto-objects" \
|
||||
-Bbuild
|
||||
|
||||
cmake --build build
|
||||
cmake --build build -v
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
package_brotli() {
|
||||
depends=('glibc')
|
||||
|
||||
cd ${pkgbase}-${pkgver}
|
||||
|
||||
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
||||
DESTDIR=${pkgdir} cmake --install build
|
||||
|
||||
local man
|
||||
for man in docs/*.?; do
|
||||
install -Dm 644 ${man} ${pkgdir}/usr/share/man/man${man##*.}/${man##*/}
|
||||
done
|
||||
}
|
||||
|
||||
package_python-brotli() {
|
||||
pkgdesc+=" - python library"
|
||||
depends=('python')
|
||||
|
||||
cd ${pkgbase}-${pkgver}
|
||||
|
||||
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
||||
|
||||
DESTDIR=${pkgdir} cmake --install build
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user