diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -1,20 +1,13 @@ # Maintainer: Daniel Bermond < gmail-com: danielbermond > -# NOTE: -# If you want the fpcalc utility: add 'ffmpeg' to depends and change '-DBUILD_TOOLS' to 'ON'. -# FFT calculations will still be made using FFTW3. libchromaprint.so will still be free of -# ffmpeg libraries. But the fpcalc utility will be linked against ffmpeg libraries, so be -# warned that this can cause some sort of circular dependency with ffmpeg if your ffmpeg -# build has '--enable-chromaprint'. - _srcname='chromaprint' pkgname=chromaprint-fftw pkgver=1.4.3 -pkgrel=2 +pkgrel=3 pkgdesc='Extracts fingerprints from any audio source (uses fftw for FFT calculations instead of ffmpeg)' arch=('i686' 'x86_64') url='https://acoustid.org/chromaprint' -license=('GPL') +license=('MIT') makedepends=('cmake') depends=('fftw') provides=('chromaprint') @@ -22,13 +15,19 @@ conflicts=('chromaprint') source=("${_srcname}-${pkgver}.tar.gz"::"https://github.com/acoustid/chromaprint/archive/v${pkgver}.tar.gz") sha256sums=('d4ae6596283aad7a015a5b0445012054c634a4b9329ecb23000cd354b40a283b') +prepare() { + cd "${_srcname}-${pkgver}" + + sed -n '18,36p' LICENSE.md > LICENSE +} + build() { cd "${_srcname}-${pkgver}" cmake \ -DBIN_INSTALL_DIR:PATH='/usr/bin' \ -DBUILD_SHARED_LIBS:BOOL='ON' \ - -DBUILD_TESTS:BOOL='OFF' \ + -DBUILD_TESTS:BOOL='ON' \ -DBUILD_TOOLS:BOOL='OFF' \ -DCMAKE_BUILD_TYPE:STRING='Release' \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ @@ -41,8 +40,16 @@ build() { make } +check() { + cd "${_srcname}-${pkgver}" + + make check +} + package() { cd "${_srcname}-${pkgver}" make DESTDIR="$pkgdir" install + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" } |