upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / libmodplug / repos / extra-x86_64 / PKGBUILD
blob18d4185652c5e7097210345050c059f8f685d95c
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=libmodplug
4 pkgver=0.8.9.0
5 pkgrel=5
6 pkgdesc="A MOD playing library"
7 arch=('x86_64')
8 url="http://modplug-xmms.sourceforge.net/"
9 license=('custom')
10 depends=('gcc-libs')
11 options=('debug')
12 source=(https://downloads.sourceforge.net/modplug-xmms/${pkgname}-${pkgver}.tar.gz
13         libmodplug-0.8.9.0-no-fast-math.patch)
14 sha256sums=('457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de'
15             '24b97252803b39546199715158ab1d61616755c6c9756f8b2b9b1948477ce4ed')
17 prepare() {
18   cd ${pkgname}-${pkgver}
19   # FS#76950 (Gentoo)
20   patch -Np1 -i ../libmodplug-0.8.9.0-no-fast-math.patch
21   autoreconf -vfi
24 build() {
25   cd ${pkgname}-${pkgver}
26   ./configure --prefix=/usr
27   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
28   make
31 package() {
32   cd ${pkgname}-${pkgver}
33   make DESTDIR="${pkgdir}" install
34   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"