diff options
author | Guillaume Horel | 2022-01-14 15:26:10 -0500 |
---|---|---|
committer | Guillaume Horel | 2022-01-14 15:26:49 -0500 |
commit | dff59321663065bc4b99a86fa1070e7a703b332a (patch) | |
tree | 9a581c3902f618a4f95f22a76ae01c1ce2bd690f | |
parent | 285478d0bc99e5ae4437fe84963703c178987b3c (diff) | |
download | aur-dff59321663065bc4b99a86fa1070e7a703b332a.tar.gz |
fix build
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | cmake.patch | 12 |
3 files changed, 36 insertions, 14 deletions
@@ -1,14 +1,17 @@ pkgbase = linphone-plugin-msamr pkgdesc = Mediastreamer2 plugin for AMR codec pkgver = 1.1.3 - pkgrel = 1 + pkgrel = 2 url = http://www.linphone.org/ arch = x86_64 license = GPL3 makedepends = cmake + depends = mediastreamer2 depends = opencore-amr + depends = ortp source = https://gitlab.linphone.org/BC/public/msamr/-/archive/1.1.3/msamr-1.1.3.tar.gz + source = cmake.patch sha256sums = 08e67986389a03246d0891715e354778986275c675012947526e8029e7454b32 + sha256sums = 14b422b1400a63184760ce1c3039863594e96a24607d499aeb23688adfd18e84 pkgname = linphone-plugin-msamr - @@ -3,27 +3,34 @@ pkgname=linphone-plugin-msamr _pkgname=msamr pkgver=1.1.3 -pkgrel=1 +pkgrel=2 pkgdesc="Mediastreamer2 plugin for AMR codec" arch=('x86_64') url="http://www.linphone.org/" license=('GPL3') -depends=('opencore-amr') +depends=('mediastreamer2' + 'opencore-amr' + 'ortp') makedepends=('cmake') -source=("https://gitlab.linphone.org/BC/public/msamr/-/archive/$pkgver/msamr-$pkgver.tar.gz") -sha256sums=('08e67986389a03246d0891715e354778986275c675012947526e8029e7454b32') +source=("https://gitlab.linphone.org/BC/public/msamr/-/archive/$pkgver/msamr-$pkgver.tar.gz" + cmake.patch) +sha256sums=('08e67986389a03246d0891715e354778986275c675012947526e8029e7454b32' + '14b422b1400a63184760ce1c3039863594e96a24607d499aeb23688adfd18e84') + +prepare() { + cd "$_pkgname-$pkgver" + patch -p1 -i ../cmake.patch +} build() { - cd "${srcdir}" - mkdir -p build - cd build - cmake -DCMAKE_PREFIX_PATH="/usr" \ + cmake -B build "$_pkgname-$pkgver" \ + -DCMAKE_PREFIX_PATH="/usr" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DENABLE_STATIC="NO" "../$_pkgname-$pkgver" - make + -DENABLE_STATIC="NO" \ + -Wno-dev + make -C build } package() { - cd "${srcdir}/build" - make DESTDIR="${pkgdir}" install + make DESTDIR="${pkgdir}" -C build install } diff --git a/cmake.patch b/cmake.patch new file mode 100644 index 000000000000..a217b7e92051 --- /dev/null +++ b/cmake.patch @@ -0,0 +1,12 @@ +diff -urN msamr-1.1.3-orig/CMakeLists.txt msamr-1.1.3/CMakeLists.txt +--- msamr-1.1.3-orig/CMakeLists.txt 2022-01-14 15:09:22.495180947 -0500 ++++ msamr-1.1.3/CMakeLists.txt 2022-01-14 15:09:33.788521185 -0500 +@@ -52,7 +52,7 @@ + include("${EP_ortp_CONFIG_DIR}/ORTPConfig.cmake") + include("${EP_ms2_CONFIG_DIR}/Mediastreamer2Config.cmake") + else() +- find_package(ORTP REQUIRED) ++ find_package(ortp REQUIRED) + find_package(Mediastreamer2 REQUIRED) + endif() + if(ENABLE_NARROWBAND) |