summaryrefslogtreecommitdiff
path: root/extra/bmp-wma/PKGBUILD
blob: 55449d66f174434512c91dc456b6a876ad926a9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 137730 2011-09-10 14:26:41Z pierre $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Ewoud Nuyts <ewoud.nuyts@gmail.com>

pkgname=bmp-wma
pkgver=0.1.1
pkgrel=4
pkgdesc="WMA plugin for Beep Media Player"
url="http://bmp-plugins.berlios.de/novelian/project.php?p=bmp-wma"
license=('GPL')
arch=('x86_64' 'i686' 'mips64el')
depends=('bmp')
groups=('bmp-plugins' 'bmp-io-plugins')
options=('!libtool' '!emptydirs')
source=("http://download.berlios.de/bmp-plugins/${pkgname}-${pkgver}.tar.gz"
        'bmp-wma-gcc4.patch')
md5sums=('8dcf3fcdb10e8e2e386f70745812412b'
         '730eba8f41e989dd8b56c18bcc826cc4')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 -i "${srcdir}/bmp-wma-gcc4.patch"
  if [ "${CARCH}" = "x86_64" ]; then
    export CFLAGS="${CFLAGS} -fPIC"
  fi
  ./configure --prefix=/usr --disable-static
  echo '#define HAVE_LRINTF 1' >> config.h
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}