upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-libmodplug / trunk / PKGBUILD
blobc464918ab3c112e8f1c96802ba2559e8dd6c52a8
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: josephgbr <rafael.f.f1@gmail.com>
3 # Contributor: GordonGR <ntheo1979@gmail.com>
5 pkgname=lib32-libmodplug
6 pkgver=0.8.9.0
7 pkgrel=4
8 pkgdesc='A MOD playing library'
9 arch=(x86_64)
10 url=http://modplug-xmms.sourceforge.net/
11 license=(custom)
12 depends=(
13   lib32-gcc-libs
14   lib32-glibc
15   libmodplug
17 source=(https://downloads.sourceforge.net/project/modplug-xmms/libmodplug/${pkgver}/libmodplug-${pkgver}.tar.gz)
18 sha256sums=(457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de)
20 build() {
21   cd libmodplug-${pkgver}
23   export CC='gcc -m32'
24   export CXX='g++ -m32'
25   export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
27   ./configure \
28     --prefix=/usr \
29     --libdir=/usr/lib32
30   make
33 package() {
34   cd libmodplug-${pkgver}
36   make DESTDIR="${pkgdir}" install
37   sed 's|includedir=${prefix}/include|includedir=${prefix}/include/libmodplug/|' -i "${pkgdir}"/usr/lib32/pkgconfig/libmodplug.pc
38   rm -rf "${pkgdir}"/usr/include
40   install -dm 755 "${pkgdir}"/usr/share/licenses
41   ln -s libmodplug "${pkgdir}"/usr/share/licenses/lib32-libmodplug
44 # vim: ts=2 sw=2 et: