archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libofa / trunk / PKGBUILD
blob8eeccd7a59d23179b25a899958872ad9d51fded3
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
4 pkgname=libofa
5 pkgver=0.9.3
6 pkgrel=9
7 pkgdesc="An open-source audio fingerprint by MusicIP"
8 arch=('x86_64')
9 url="https://github.com/tanob/libofa"
10 license=('GPL2' 'custom')
11 depends=('expat' 'curl' 'fftw')
12 source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/libofa-$pkgver.tar.gz"
13         'libofa-gcc4.patch'
14         'libofa-gcc4.3.patch'
15         'libofa-gcc4.5.patch'
16         'libofa-0.9.3-curl-7.21.patch'
17         'libofa-0.9.3-gcc-4.7.patch')
18 sha256sums=('0216466153e92058c5202dea03390ddc7601d916b983f71ce4f4d034405590a0'
19             '29955fe97cdb3cc2eb72b7b05f1ae38cc5c98b1740a0db96d61f51a13d380cd8'
20             '99fb50907d98640b21a42d00fccee1fa33a02dfabf94a40374766fcc823f5dd3'
21             '6557e9c5ff2a8e0d5f0a91d9faa0ac43b7278926631d45a504cd17fe07fd3c68'
22             '2fa49ced7b47cf05641d1413965244693ffd514ec9d409a784b92751ae4d1c90'
23             'e0c28752df197ce38f9762aded5df12e1ba1181f721f42fddb83ec1178e90c58')
25 prepare() {
26   cd ${pkgname}-${pkgver}
27   patch -p0 -i "${srcdir}/libofa-gcc4.patch"
28   patch -p1 -i "${srcdir}/libofa-gcc4.3.patch"
29   patch -p1 -i "${srcdir}/libofa-gcc4.5.patch"
30   patch -p1 -i "${srcdir}/libofa-0.9.3-gcc-4.7.patch"
31   patch -p1 -i "${srcdir}/libofa-0.9.3-curl-7.21.patch"
34 build() {
35   cd ${pkgname}-${pkgver}
36   ./configure --prefix=/usr
37   make
40 package() {
41   cd ${pkgname}-${pkgver}
42   make DESTDIR="${pkgdir}" install
44   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"