summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c936e611eeda1cc54eacc4f9faf2b90f75c5768 (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
# Maintainer: yubimusubi
_pkgbase=citro3d
pkgname=("${_pkgbase}-git")
provides=($_pkgbase)
conflicts=($_pkgbase)
pkgver=r89.a28fff9
pkgrel=1
pkgdesc="Provides an easy to use stateful interface to the PICA200 GPU of the Nintendo 3DS."
arch=('i686' 'x86_64')
url="https://github.com/fincs/citro3d"
license=('custom:BSD-like')
sha256sums=('SKIP')
depends=('devkitarm' 'libctru')
makedepends=('git')
options=('!strip' 'staticlibs')

source=("$_pkgbase::git+https://github.com/fincs/citro3d.git")

pkgver() {
    cd "$_pkgbase"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
    cd "$_pkgbase"
    unset CFLAGS
    source /etc/profile.d/devkitarm.sh
    make
}

package() {
    cd "$_pkgbase"
    source /etc/profile.d/devkitarm.sh

    # Makefile doesn't support DESTDIR so use DEVKITPRO instead
    make DEVKITPRO="$pkgdir/$DEVKITPRO" install
}