summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b4d41646e121057060703927f7eef0c05dc8506 (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
35
36
37
38
39
40
41
42
43
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
# Contributor: Yvan <madridista40@orange.fr>

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
}