archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libbs2b / trunk / PKGBUILD
blob1339aac84789053432060be46a2a1e0d55289e60
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
3 # Contributor: Panagiotis Papadopoulos pano_90 AT gmx DOT net 
5 pkgname=libbs2b
6 pkgver=3.1.0
7 pkgrel=8
8 pkgdesc="Bauer stereophonic-to-binaural DSP effect library"
9 url="http://bs2b.sourceforge.net"
10 arch=(x86_64)
11 license=(custom:MIT)
12 depends=(libsndfile gcc-libs)
13 options=(debug)
14 source=("https://downloads.sourceforge.net/sourceforge/bs2b/$pkgname-$pkgver.tar.lzma"
15         formatsecurity.diff)
16 md5sums=('00d32ffa6461dde6a632c846da3e0a13'
17          'af1c91f47bd7481cd71fc38a3a35f0e7')
18 sha1sums=('ec847e38a3a6f7eeed245b44e53f02cfff056df0'
19           'f8206ca996894884a2989401feb1b7d1acd28f2e')
20 b2sums=('986b0df4faee05cd6659bf5e338752d795450af9543f6c24c93cfeaa537fefb125966e4311d3637856aa6c4959b2aeec68b46baaab9caba5829405ce4b69d9a3'
21         'c111cf2f249261ec286fdb24e1f044ce2b3b9d078f3f139e1519ba4932bc35392b497882c0daf23c53c89199d0f3783b740cdf0e71175c6dedd408a9fb2d7cfd')
23 prepare() {
24   cd $pkgname-$pkgver
26   # Fix error: format not a string literal and no format arguments [-Werror=format-security]
27   patch -Np1 -i ../formatsecurity.diff
29   sed -i 's/dist-lzma/dist-xz/g' configure.ac
31   autoreconf -fvi
34 build() {
35   cd $pkgname-$pkgver
36   ./configure --prefix=/usr
37   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
38   make
41 check() {
42   cd $pkgname-$pkgver
43   make check
46 package() {
47   depends+=(libsndfile.so)
48   provides+=(libbs2b.so)
50   cd $pkgname-$pkgver
51   make DESTDIR="$pkgdir" install
52   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING