[arch-commits] Commit in lib32-flac/trunk (PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Mon Feb 21 19:25:42 UTC 2022
Date: Monday, February 21, 2022 @ 19:25:41
Author: heftig
Revision: 1135608
1.3.4-1
Modified:
lib32-flac/trunk/PKGBUILD
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++------------------------
1 file changed, 27 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-21 18:39:57 UTC (rev 1135607)
+++ PKGBUILD 2022-02-21 19:25:41 UTC (rev 1135608)
@@ -1,46 +1,49 @@
-# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
-_pkgbasename=flac
-pkgname=lib32-$_pkgbasename
-pkgver=1.3.3
+pkgname=lib32-flac
+pkgver=1.3.4
pkgrel=1
pkgdesc='Free Lossless Audio Codec (32-bit)'
url='https://xiph.org/flac/'
arch=('x86_64')
license=('BSD' 'GPL')
-depends=('lib32-gcc-libs' 'lib32-libogg' $_pkgbasename)
-makedepends=('nasm')
-source=(https://downloads.xiph.org/releases/flac/${_pkgbasename}-${pkgver}.tar.xz)
-sha256sums=('213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748')
-sha512sums=('d6417e14fab0c41b2df369e5e39ce62a5f588e491af4d465b0162f74e171e5549b2f061867f344bfbf8aaccd246bf5f2acd697e532a2c7901c920c69429b1a28')
+depends=('lib32-gcc-libs' 'lib32-libogg' 'flac')
+makedepends=('nasm' 'cmake' 'ninja')
+source=(https://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz)
+sha512sums=('4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9')
+prepare() {
+ cd flac-${pkgver}
+}
+
build() {
- cd ${_pkgbasename}-${pkgver}
-
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
- ./configure \
- --prefix=/usr \
- --libdir=/usr/lib32 \
- --disable-thorough-tests \
- --disable-sse
- make
+ cmake -S flac-${pkgver} -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib32 \
+ -DBUILD_SHARED_LIBS=ON \
+ -DWITH_STACK_PROTECTOR=OFF
+ cmake --build build
}
check() {
- cd ${_pkgbasename}-${pkgver}
- make check
+ FLAC__TEST_LEVEL=0 cmake --build build --target test
}
package() {
provides=('libFLAC.so' 'libFLAC++.so')
- cd ${_pkgbasename}-${pkgver}
- make DESTDIR="${pkgdir}" install
+ DESTDIR="${pkgdir}" cmake --install build
- rm -rf "${pkgdir}"/usr/{include,share,bin}
- mkdir -p "$pkgdir/usr/share/licenses"
- ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+ rm -r "${pkgdir}"/usr/{bin,include,share}
+
+ install -Dm 644 flac-${pkgver}/COPYING.Xiph -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list