diff options
author | Rodrigo Bezerra | 2020-11-26 12:37:23 -0300 |
---|---|---|
committer | Rodrigo Bezerra | 2020-11-26 12:37:23 -0300 |
commit | 8c9924cdf1a2a5eb6db663985602f4f046dea172 (patch) | |
tree | 476c2ca917432aec6e6980fb816ac95afe5cbb3d /PKGBUILD | |
parent | e84bdb997579cc49bfca6b6e771c7347f5e91301 (diff) | |
download | aur-8c9924cdf1a2a5eb6db663985602f4f046dea172.tar.gz |
Use Cmake LIB_SUFFIX=32
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -2,9 +2,9 @@ # Contributor: orumin <dev@orum.in> _basename=chromaprint -pkgname="lib32-$_basename" +pkgname=lib32-chromaprint pkgver=1.5.0 -pkgrel=4 +pkgrel=5 pkgdesc="Library for extracting fingerprints from any audio source (32-bit)" url="https://acoustid.org/chromaprint" arch=('x86_64') @@ -23,18 +23,20 @@ prepare() { cd "${_basename}-${pkgver}" patch -Np1 -i ../fix_build_32bit.patch + rm -v cmake/modules/FindGTest.cmake } build() { export CC='gcc -m32' export CXX='g++ -m32' - export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' + export PKG_CONFIG='/usr/bin/i686-pc-linux-gnu-pkg-config' cd "${_basename}-${pkgver}" cmake -S . -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=32 \ -DCMAKE_BUILD_TYPE='None' \ -DBUILD_TESTS=ON \ -DGTEST_SOURCE_DIR=/usr/src/googletest/ \ @@ -58,8 +60,5 @@ package() { cd "$pkgdir"/usr - sed -e "s|/usr/lib|/usr/lib32|" -i lib/pkgconfig/libchromaprint.pc - rm -r include - mv lib lib32 } |