[arch-commits] Commit in lib32-brotli/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Wed Nov 24 20:45:49 UTC 2021
Date: Wednesday, November 24, 2021 @ 20:45:49
Author: heftig
Revision: 1054730
1.0.9-2: libprovides
Modified:
lib32-brotli/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++-------------------
1 file changed, 9 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-24 20:37:36 UTC (rev 1054729)
+++ PKGBUILD 2021-11-24 20:45:49 UTC (rev 1054730)
@@ -6,7 +6,7 @@
pkgname=lib32-brotli
pkgver=1.0.9
-pkgrel=1
+pkgrel=2
pkgdesc='Brotli compression library'
arch=(x86_64)
license=(MIT)
@@ -19,8 +19,11 @@
cmake
git
)
+provides=(
+ libbrotli{common,dec,enc}.so
+)
_tag=e61745a6b7add50d380cfd7d3883dd6c62fc2c71
-source=(git+https://github.com/google/brotli.git#tag=${_tag})
+source=(git+https://github.com/google/brotli#tag=${_tag})
sha256sums=(SKIP)
pkgver() {
@@ -29,35 +32,22 @@
git describe --tags | sed 's/^v//'
}
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
build() {
- cd build
-
export CC='gcc -m32'
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
- cmake ../brotli \
+ cmake -S brotli -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib32
- make
+ cmake --build build
}
check() {
- cd build
-
- make test
+ cmake --build build --target test
}
package() {
- cd build
-
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
rm -rf "${pkgdir}"/usr/{bin,include}
install -dm 755 "${pkgdir}"/usr/share/licenses
ln -s brotli "${pkgdir}"/usr/share/licenses/lib32-brotli
More information about the arch-commits
mailing list