diff options
Diffstat (limited to 'user/libsndfile/APKBUILD')
-rw-r--r-- | user/libsndfile/APKBUILD | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/user/libsndfile/APKBUILD b/user/libsndfile/APKBUILD index 25843869c..fc6b77f6a 100644 --- a/user/libsndfile/APKBUILD +++ b/user/libsndfile/APKBUILD @@ -1,22 +1,16 @@ # Contributor: Sergey Lukin <sergej.lukin@gmail.com> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=libsndfile -pkgver=1.0.28 -pkgrel=4 +pkgver=1.1.0 +pkgrel=0 pkgdesc="Library for reading and writing sampled sound files (WAV, AIFF, ...)" -url="http://www.mega-nerd.com/libsndfile" +url="https://libsndfile.github.io/libsndfile/" arch="all" license="LGPL-2.1-only OR LGPL-3.0-only" subpackages="$pkgname-dev $pkgname-doc" depends="" -depends_dev="flac-dev libogg-dev libvorbis-dev" -makedepends="$depends_dev alsa-lib-dev linux-headers" -source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz - CVE-2017-8361_CVE-2017-8363_CVE-2017-8365.patch - CVE-2017-8362.patch - CVE-2017-12562.patch - varargs-32bit.patch - " +makedepends="alsa-lib-dev flac-dev libogg-dev libvorbis-dev linux-headers opus-dev python3 cmake" +source="https://github.com/libsndfile/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz" # secfixes: # 1.0.28-r2: @@ -32,26 +26,41 @@ source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz # - CVE-2017-8365 build() { - ac_cv_sys_largefile_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --disable-sqlite \ - --enable-largefile - make + cmake -B build-shared \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DENABLE_MPEG=OFF \ + -DBUILD_REGTEST=OFF \ + -DBUILD_TESTING=OFF + make -C build-shared + + # required for testing + cmake -B build-static \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=False \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DENABLE_MPEG=OFF \ + -DBUILD_REGTEST=OFF \ + -DBUILD_TESTING=ON + make -C build-static } check() { - make check + cd build-static + # the failed 'wrt_32bit.sd2' test is not a new regression + CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(write_read_test_sd2)' } package() { - make DESTDIR="$pkgdir" install + make -C build-shared DESTDIR="$pkgdir" install + make -C build-static DESTDIR="$pkgdir" install } -sha512sums="890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f libsndfile-1.0.28.tar.gz -f98c40696fca3e7bca867df993de55bb4145c23428e65d1a669182eb2293046478ac727ae7f94bb77123ef0355c3c53be4f9d6a432665c90c74687d8d3afd9e3 CVE-2017-8361_CVE-2017-8363_CVE-2017-8365.patch -dfd4b5f1c7471fc416eed5c6040580a020543f145de9103751adaad6ce1c5c6a22abc1cf0ffd381aed3072644cd5ee03ba3598265aa7d202d63167da251cb595 CVE-2017-8362.patch -814139567d90fb07908014e858c341fe933e04dca69b88ad66078910888237bbeba94f85d9e1489883c424f35fca312eb98c21ae2b122d9289bb6418725cd02e CVE-2017-12562.patch -2b83bacec23665cd31a596a1ce1fb543f935c7609dfff93a85822f81d66b3483cd547cd043eefb901d543276c270a17add70bf0db6348b5279220a7ecbd8b339 varargs-32bit.patch" +sha512sums="d01696a8a88a4444e5eb91a137cf7b26b55b12c1fe3b648653f7e78674bbdf61870066216c9ff2f6a1e63bdf7b558af9a759480cf6523b607d29347b12762006 libsndfile-1.1.0.tar.xz" |