summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1be6052f8b79e8f2137d4d64bf2ee391094af04a (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
pkgname=psp-libvorbis
pkgver=1.1.1
pkgrel=1
pkgdesc="Vorbis codec library (psp)"
arch=(any)
url="http://www.xiph.org/vorbis/"
license=('BSD')
groups=('psp')
depends=('psp-sdk' 'psp-libogg')
makedepends=('psp-gcc')
options=('!buildflags' '!strip' 'staticlibs')
source=("git+https://github.com/pspdev/psp-ports.git")
md5sums=('SKIP')


build()
{
  cd "$srcdir/psp-ports/libvorbis"
  sh autogen.sh
  make distclean # autogen calls configure
  export LDFLAGS="-L$(psp-config --pspsdk-path)/lib -L$(psp-config --psp-prefix)/lib -lc -lpspuser"
  export LIBS="-lc -lpspuser"
  mkdir -p build-psp && pushd build-psp
  ../configure --prefix=/usr/psp --host=psp 
  make
}

package()
{
  cd "$srcdir/psp-ports/libvorbis/build-psp"
  make install DESTDIR="$pkgdir"
}