diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-10-11 12:56:10 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-10-11 12:57:07 +0200 |
commit | 24b923886da1187d502a79ffe1f0549a730ab6f8 (patch) | |
tree | 994f82c3077c5d384604baf6e60897b669c2b63f /testing/chromaprint | |
parent | d1d0e29c52bdd435e956c4cf906460ee834b1c08 (diff) | |
download | aports-24b923886da1187d502a79ffe1f0549a730ab6f8.tar.bz2 aports-24b923886da1187d502a79ffe1f0549a730ab6f8.tar.xz |
testing/chromaprint: new aport
Diffstat (limited to 'testing/chromaprint')
-rw-r--r-- | testing/chromaprint/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/chromaprint/APKBUILD b/testing/chromaprint/APKBUILD new file mode 100644 index 0000000000..ca2c7815c6 --- /dev/null +++ b/testing/chromaprint/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=chromaprint +pkgver=1.2 +pkgrel=0 +pkgdesc="Library that implements a custom algorithm for extracting fingerprints from any audio source" +url="http://acoustid.org/chromaprint/" +arch="all" +license="LGPL" +depends="" +depends_dev="ffmpeg-dev" +makedepends="$depends_dev cmake" +install="" +subpackages="$pkgname-dev" +source="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-$pkgver.tar.gz" + +_builddir="$srcdir"/chromaprint-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_EXAMPLES=ON \ + . || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="${pkgdir}" install || return 1 +} + +md5sums="748da044a8f0ee5f31edec8b67045b3e chromaprint-1.2.tar.gz" +sha256sums="822b8949a322ac04c6f8a3ed78f5e689bcc493c6ca0972bf627c913c8430031a chromaprint-1.2.tar.gz" +sha512sums="dc61db8894a20df3d7e7317cd7cd97148c19be5854dd66409341cb8e47c045e1c632b254e14a869279983a5af2cc6f9effea21b77a63dff729511e6144439cbb chromaprint-1.2.tar.gz" |