[arch-commits] Commit in soundtouch/repos (3 files)

Maxime Gauduin alucryd at gemini.archlinux.org
Tue Jan 11 09:56:04 UTC 2022


    Date: Tuesday, January 11, 2022 @ 09:56:04
  Author: alucryd
Revision: 434225

archrelease: copy trunk to staging-x86_64

Added:
  soundtouch/repos/staging-x86_64/
  soundtouch/repos/staging-x86_64/PKGBUILD
    (from rev 434224, soundtouch/trunk/PKGBUILD)
  soundtouch/repos/staging-x86_64/soundtouch-cmake.patch
    (from rev 434224, soundtouch/trunk/soundtouch-cmake.patch)

------------------------+
 PKGBUILD               |   51 +++++++++++++++++++++++++++++++++++++++++++++++
 soundtouch-cmake.patch |   14 ++++++++++++
 2 files changed, 65 insertions(+)

Copied: soundtouch/repos/staging-x86_64/PKGBUILD (from rev 434224, soundtouch/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2022-01-11 09:56:04 UTC (rev 434225)
@@ -0,0 +1,51 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=soundtouch
+pkgver=2.3.1
+pkgrel=1
+pkgdesc='An audio processing library'
+arch=(x86_64)
+url=https://www.surina.net/soundtouch/
+license=(LGPL2.1)
+depends=(gcc-libs)
+makedepends=(
+  cmake
+  git
+  ninja
+)
+_tag=e1f315f5358d9db5cee35a7a2886425489fcefe8
+source=(
+  git+https://codeberg.org/soundtouch/soundtouch.git#tag=${_tag}
+  soundtouch-cmake.patch
+)
+b2sums=('SKIP'
+        '9eed09dc451c4e216a322211622e96757671613a4ba8231a699e32a50764eee4072837df697205dea87ef66a4d4d3105418451bec9cbe4f077ab55718ab374dd')
+
+prepare() {
+  cd soundtouch
+  # install autotools files
+  patch -Np1 -i ../soundtouch-cmake.patch
+  # cmake doesn't generate files for autotools
+  autoreconf -fiv
+  ./configure --prefix=/usr --enable-shared
+}
+
+pkgver() {
+  cd soundtouch
+  git describe --tags
+}
+
+build() {
+  cmake -S soundtouch -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE='' \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_SHARED_LIBS=ON
+  cmake --build build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+}
+
+# vim: ts=2 sw=2 et:

Copied: soundtouch/repos/staging-x86_64/soundtouch-cmake.patch (from rev 434224, soundtouch/trunk/soundtouch-cmake.patch)
===================================================================
--- staging-x86_64/soundtouch-cmake.patch	                        (rev 0)
+++ staging-x86_64/soundtouch-cmake.patch	2022-01-11 09:56:04 UTC (rev 434225)
@@ -0,0 +1,14 @@
+diff '--color=auto' -rupN soundtouch.orig/CMakeLists.txt soundtouch/CMakeLists.txt
+--- soundtouch.orig/CMakeLists.txt	2021-08-26 13:11:17.958981063 +0200
++++ soundtouch/CMakeLists.txt	2021-08-26 13:16:35.308990428 +0200
+@@ -121,6 +122,10 @@ endif()
+ 
+ ########################
+ 
++# autotools
++install(FILES include/soundtouch_config.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/soundtouch")
++install(FILES soundtouch.m4 DESTINATION "${CMAKE_INSTALL_DATADIR}/aclocal")
++
+ # pkgconfig
+ set(prefix "${CMAKE_INSTALL_PREFIX}")
+ set(execprefix "\${prefix}")



More information about the arch-commits mailing list