summaryrefslogtreecommitdiff
path: root/extra/smpeg2/PKGBUILD
blob: 99d59b4eebffaf47e14f8255bab9b4e75c9193f5 (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
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=smpeg2
epoch=1
pkgver=2.0.0
pkgrel=1
pkgdesc="SDL2 MPEG Player Library"
arch=('i686' 'x86_64')
url="http://icculus.org/smpeg/"
license=('LGPL')
depends=('sdl2' 'gcc-libs')
makedepends=('svn')
options=('!libtool')
source=("${pkgname}::svn://svn.icculus.org/smpeg/tags/release_${pkgver//./_}")
md5sums=('SKIP')

build() {
  cd ${srcdir}/${pkgname}
  ./autogen.sh
  ./configure --prefix=/usr --mandir=/usr/share/man --disable-static
  make
}

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

  # hacky way of resolving conflicts
  rm ${pkgdir}/usr/bin/plaympeg
  rm -r ${pkgdir}/usr/share/man
}