# Maintainer: carstene1ns - http://git.io/ctPKG # Contributor: Yvan pkgname=libfat-ogc-git pkgver=1.0.14.r3.gcf268b3 pkgrel=1 pkgdesc="Library for acessing FAT filesystems from Nintendo Gamecube/Wii homebrew (development version)" arch=('any') url="http://www.devkitpro.org/" license=('custom') depends=('devkitppc' 'libogc-git') makedepends=('git') conflicts=('libfat-ogc') provides=('libfat-ogc') source=("git+https://github.com/devkitPro/libfat.git") md5sums=('SKIP') options=(!strip staticlibs) pkgver() { cd libfat git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g' } build() { cd libfat # set environment source /etc/profile.d/devkitppc.sh make include/libfatversion.h make ogc-release } package() { cd libfat export DEVKITPRO="$pkgdir"/opt/devkitpro install -d "$DEVKITPRO"/libogc/{lib/{cube,wii},include} make ogc-install # license install -d "$pkgdir"/usr/share/licenses/$pkgname head -n 30 include/fat.h > "$pkgdir"/usr/share/licenses/$pkgname/license.txt }