[arch-commits] Commit in soundtouch/repos (3 files)
Maxime Gauduin
alucryd at gemini.archlinux.org
Thu Aug 26 11:44:23 UTC 2021
Date: Thursday, August 26, 2021 @ 11:44:22
Author: alucryd
Revision: 422564
archrelease: copy trunk to testing-x86_64
Added:
soundtouch/repos/testing-x86_64/
soundtouch/repos/testing-x86_64/PKGBUILD
(from rev 422563, soundtouch/trunk/PKGBUILD)
soundtouch/repos/testing-x86_64/soundtouch-cmake.patch
(from rev 422563, soundtouch/trunk/soundtouch-cmake.patch)
------------------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++
soundtouch-cmake.patch | 22 +++++++++++++++++++
2 files changed, 75 insertions(+)
Copied: soundtouch/repos/testing-x86_64/PKGBUILD (from rev 422563, soundtouch/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-08-26 11:44:22 UTC (rev 422564)
@@ -0,0 +1,53 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=soundtouch
+pkgver=2.3.0
+pkgrel=2
+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=c65afe49f697fcea87d9a134870c8d115d7700cc
+source=(
+ git+https://gitlab.com/soundtouch/soundtouch.git#tag=${_tag}
+ soundtouch-cmake.patch
+)
+b2sums=(
+ SKIP
+ 995f751615848acd46da4420d3f243f5b4887879b5a654f546a52629443cdec8249bbcb53cf800600d65ecfe0cf114249b63e0c53e8f75478e7f8bc060ae1e40
+)
+
+prepare() {
+ cd soundtouch
+ # set soname, 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/testing-x86_64/soundtouch-cmake.patch (from rev 422563, soundtouch/trunk/soundtouch-cmake.patch)
===================================================================
--- testing-x86_64/soundtouch-cmake.patch (rev 0)
+++ testing-x86_64/soundtouch-cmake.patch 2021-08-26 11:44:22 UTC (rev 422564)
@@ -0,0 +1,22 @@
+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
+@@ -34,6 +34,7 @@ target_include_directories(SoundTouch PU
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+ )
++set_target_properties(SoundTouch PROPERTIES VERSION 1.0.0 SOVERSION 1)
+
+ target_compile_definitions(SoundTouch PRIVATE ${COMPILE_DEFINITIONS})
+ target_compile_options(SoundTouch PRIVATE ${COMPILE_OPTIONS})
+@@ -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