diff --git a/libcerf/PKGBUILD b/libcerf/PKGBUILD index 50359ea40f..aa9647df32 100644 --- a/libcerf/PKGBUILD +++ b/libcerf/PKGBUILD @@ -3,16 +3,22 @@ pkgname=libcerf epoch=1 -pkgver=1.14 +pkgver=1.15 pkgrel=1 -pkgdesc="Self-contained numeric library that provides an efficient and accurate implementation of complex error functions" -arch=( x86_64 powerpc64le powerpc ) -url="https://jugit.fz-juelich.de/mlz/libcerf/" +pkgdesc='Self-contained numeric library that provides an efficient and accurate implementation of complex error functions' +arch=(x86_64 powerpc64le powerpc) +url='https://jugit.fz-juelich.de/mlz/libcerf/' license=(custom) depends=(glibc) makedepends=(cmake) -source=(https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v$pkgver/libcerf-v$pkgver.tar.gz) -sha256sums=('065346b3360943c9961517f8c49ae13fe956835f6fc3b53e9d307e41feec3a34') +source=(https://jugit.fz-juelich.de/mlz/libcerf/-/archive/v$pkgver/libcerf-v$pkgver.tar.gz + pc-install-dir.patch) +sha256sums=('a5d45475e08d431267fd29d6af987a9dd9b6792578ec3feb466d4d21f2844868' + '7605dfbe028efc37ad63eac35c70260283908c21c51030283576d0439d8b82f7') + +prepare() { + patch -d $pkgname-v$pkgver -p1 < pc-install-dir.patch # Fix pc file install dir +} build() { cmake -B build -S $pkgname-v$pkgver \ diff --git a/libcerf/pc-install-dir.patch b/libcerf/pc-install-dir.patch new file mode 100644 index 0000000000..7aa371d029 --- /dev/null +++ b/libcerf/pc-install-dir.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 726436b..8e3a5c2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,7 +75,7 @@ include(CTest) + + configure_file("libcerf.pc.in" "libcerf.pc" @ONLY) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcerf.pc" +- DESTINATION "${CMAKE_INSTALL_PREFIX}/pkgconfig/") ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/") + + add_subdirectory(lib) + add_subdirectory(test)