archrelease: copy trunk to staging-x86_64
[arch-packages.git] / libmodplug / trunk / PKGBUILD
blobfeed8bbc787cc312280f29eb213cc38bb328d1ed
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 source=(https://downloads.sourceforge.net/modplug-xmms/${pkgname}-${pkgver}.tar.gz
12         libmodplug-0.8.9.0-no-fast-math.patch)
13 sha256sums=('457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de'
14             '24b97252803b39546199715158ab1d61616755c6c9756f8b2b9b1948477ce4ed')
16 prepare() {
17   cd ${pkgname}-${pkgver}
18   # FS#76950 (Gentoo)
19   patch -Np1 -i ../libmodplug-0.8.9.0-no-fast-math.patch
20   autoreconf -vfi
23 build() {
24   cd ${pkgname}-${pkgver}
25   ./configure --prefix=/usr
26   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
27   make
30 package() {
31   cd ${pkgname}-${pkgver}
32   make DESTDIR="${pkgdir}" install
33   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"