summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Bezerra2020-11-22 15:34:48 -0300
committerRodrigo Bezerra2020-11-22 15:34:48 -0300
commit7bb5f19302d4dea68b9f8d89f58e5e4200716cfc (patch)
tree9a3fd4a10d2d540e809720207f90cb7697628ba8
parenta6135d75d8fb848f685f6341d872ffcc1815e16d (diff)
downloadaur-7bb5f19302d4dea68b9f8d89f58e5e4200716cfc.tar.gz
Update PKGBUILD to the changes in the repo
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD50
2 files changed, 42 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0a509ee8f25..c4dfe7446c7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,21 @@
pkgbase = lib32-chromaprint
- pkgdesc = Library that implements a custom algorithm for extracting fingerprints from any audio source (32-bit)
+ pkgdesc = Library for extracting fingerprints from any audio source (32-bit)
pkgver = 1.5.0
- pkgrel = 1
+ pkgrel = 2
url = https://acoustid.org/chromaprint
arch = x86_64
- license = LGPL
+ license = LGPL2.1
+ license = MIT
makedepends = cmake
+ makedepends = gtest
depends = lib32-ffmpeg
depends = chromaprint
- source = https://github.com/acoustid/chromaprint/releases/download/v1.5.0/chromaprint-1.5.0.tar.gz
+ source = chromaprint-1.5.0.tar.gz::https://github.com/acoustid/chromaprint/archive/v1.5.0.tar.gz
source = fix_build_32bit.patch
- sha256sums = 573a5400e635b3823fc2394cfa7a217fbb46e8e50ecebd4a61991451a8af766a
- sha256sums = ae0e2805c4fa19ab5e51c4ec8e414c548eb0d66511ee45d41ca8c99a1ca32db5
+ sha512sums = 333114949928abdf5d4b11aba1db6ec487eebe526324c68d903b3fa80a3af87a28d942af765a2f873e63a1bf222b658b6438cd10cde4446f61b26ea91f537469
+ sha512sums = d67e955398cf50e96e3ff5c16544c11745dad84c19d2ea965759f71c05c84cd1b0299becb287575135f8d921c906b2dbfa87ab3da659af3bcc203205e96af5b1
+ b2sums = 930d1a7b8fa30dc726f78e3fc93c4e1aef5036b60ceee003c36ce7ea344523ce8b3abc294a4204e9acb6472600e7cfa5b15b1ca27c2917bd161b59cac1e7120c
+ b2sums = 8a0e13c019df0d745ecd7eb4b2a49f1e8a2918c86d751ffadcc033899c091e37434a2e319f820a7f63da841984cf4a36e1849782dabc9a2503ab10ba546efb45
pkgname = lib32-chromaprint
diff --git a/PKGBUILD b/PKGBUILD
index ce95a502a15..7d5f039c74b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,46 +4,60 @@
_basename=chromaprint
pkgname="lib32-$_basename"
pkgver=1.5.0
-pkgrel=1
-pkgdesc='Library that implements a custom algorithm for extracting fingerprints from any audio source (32-bit)'
-url='https://acoustid.org/chromaprint'
+pkgrel=2
+pkgdesc="Library for extracting fingerprints from any audio source (32-bit)"
+url="https://acoustid.org/chromaprint"
arch=('x86_64')
-license=('LGPL')
+license=('LGPL2.1' 'MIT')
depends=('lib32-ffmpeg' 'chromaprint')
-makedepends=('cmake')
-source=("https://github.com/acoustid/chromaprint/releases/download/v${pkgver}/chromaprint-${pkgver}.tar.gz"
+makedepends=('cmake' 'gtest')
+# upstream signs with DSA key: https://github.com/acoustid/chromaprint/issues/81
+source=("${_basename}-${pkgver}.tar.gz::https://github.com/acoustid/${_basename}/archive/v${pkgver}.tar.gz"
"fix_build_32bit.patch")
-sha256sums=('573a5400e635b3823fc2394cfa7a217fbb46e8e50ecebd4a61991451a8af766a'
- 'ae0e2805c4fa19ab5e51c4ec8e414c548eb0d66511ee45d41ca8c99a1ca32db5')
+sha512sums=('333114949928abdf5d4b11aba1db6ec487eebe526324c68d903b3fa80a3af87a28d942af765a2f873e63a1bf222b658b6438cd10cde4446f61b26ea91f537469'
+ 'd67e955398cf50e96e3ff5c16544c11745dad84c19d2ea965759f71c05c84cd1b0299becb287575135f8d921c906b2dbfa87ab3da659af3bcc203205e96af5b1')
+b2sums=('930d1a7b8fa30dc726f78e3fc93c4e1aef5036b60ceee003c36ce7ea344523ce8b3abc294a4204e9acb6472600e7cfa5b15b1ca27c2917bd161b59cac1e7120c'
+ '8a0e13c019df0d745ecd7eb4b2a49f1e8a2918c86d751ffadcc033899c091e37434a2e319f820a7f63da841984cf4a36e1849782dabc9a2503ab10ba546efb45')
prepare() {
- mkdir build
-
- cd ${_basename}-v${pkgver}
+ cd "${_basename}-${pkgver}"
patch -Np1 -i ../fix_build_32bit.patch
+ rm -v cmake/modules/FindGTest.cmake
}
build() {
- cd build
-
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
- cmake "../$_basename-v$pkgver" \
- -DCMAKE_INSTALL_PREFIX=/usr
+ cd "${_basename}-${pkgver}"
- make
+ cmake -S . -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DBUILD_TESTS=ON \
+ -DGTEST_SOURCE_DIR=/usr/src/googletest/ \
+ -Wno-dev
+
+ make VERBOSE=1 -C build
+}
+
+check() {
+ cd "${_basename}-${pkgver}"
+
+ make VERBOSE=1 -C build check
}
package() {
- cd build
+ cd "${_basename}-${pkgver}"
- make DESTDIR="$pkgdir" install
+ make VERBOSE=1 DESTDIR="${pkgdir}" install -C build
cd "$pkgdir"/usr
+ install -vDm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${_basename}"
+
sed -e "s|/usr/lib|/usr/lib32|" -i lib/pkgconfig/libchromaprint.pc
rm -r include