summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fd463d636a67d754aeeaa65f185934913337ccb (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
# Maintainer: Philipp Joram <mail AT phijor DOT me>

_gitname=citrus
pkgname=${_gitname}-3ds-git
pkgver=r105.71f027e
pkgrel=1
pkgdesc="Simplified 3DS homebrew library."
arch=('x86_64')
url="https://github.com/steveice10/citrus"
license=('custom')
depends=('ctrulib-git')
makedepends=('git' 'make' 'picasso-3ds-git')
source=("${pkgname}::git+https://github.com/steveice10/${_gitname}.git")
md5sums=('SKIP')
options=(!strip)

prepare() {
  cd "${srcdir}/${pkgname}"
  git submodule init
  git submodule update
}

pkgver() {
  cd "${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  install -dm755 ${pkgdir}${DEVKITPRO}/${_gitname}/
  cp -ar output/{include,lib} ${pkgdir}${DEVKITPRO}/${_gitname}/

  install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

# vim:set ts=2 sw=2 et: