summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 011f82c356ea66358982984dcc7d425754d65ae0 (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Aaron Lindsay <aaron@aaronlindsay.com>

pkgname=devkitppc-portlibs-tremor-lowmem
pkgver=20100725
pkgrel=3
pkgdesc='Integer-only Ogg Vorbis decoder library (for Nintendo Gamecube/Wii/Wii U homebrew development)'
arch=('any')
url='http://www.xiph.org/vorbis/'
license=('BSD')
options=(!strip libtool staticlibs)
depends=('devkitppc')
source=("http://downloads.sourceforge.net/sourceforge/devkitpro/tremor-lowmem-src.tar.bz2")
sha256sums=('54a40ce5521f908b91b44bc9259ea499b8b7299b37b154c348614373ed79840c')

build() {
  cd tremor-lowmem

  # set environment
  source /etc/profile.d/devkitppc.sh
  export CFLAGS="-g -O2 -ffunction-sections -fdata-sections"

  ./autogen.sh --prefix="$DEVKITPRO/portlibs/ppc" --host=powerpc-eabi \
    --disable-shared --enable-static
  make
}

package() {
  cd tremor-lowmem

  make DESTDIR="$pkgdir" install
  # license
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}