summaryrefslogtreecommitdiff
path: root/extra/libmodplug/PKGBUILD
blob: 023922281fdeb5ad88f8b319b229a153243ce3c8 (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 198199 2013-10-30 13:24:33Z allan $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=libmodplug
pkgver=0.8.8.4
pkgrel=2
pkgdesc="A MOD playing library"
arch=(i686 x86_64 'mips64el')
url="http://modplug-xmms.sourceforge.net/"
license=('custom')
depends=('gcc-libs')
source=(http://downloads.sourceforge.net/modplug-xmms/${pkgname}-${pkgver}.tar.gz
        libmodplug-CVE-2013-4233-Fix.patch libmodplug-CVE-2013-4234-Fix.patch)
sha1sums=('df4deffe542b501070ccb0aee37d875ebb0c9e22'
          'daee7fba80f633236a3d09ad19225c57013140e9'
          '2e870747261a86dce5056cbf077c5914e9e8b287')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p2 -i "${srcdir}/libmodplug-CVE-2013-4233-Fix.patch"
  patch -p2 -i "${srcdir}/libmodplug-CVE-2013-4234-Fix.patch"
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}