summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11f30e9b90ff3db7531373994165c6f928c12203 (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
# Original Maintainer: Dave Murphy <davem@devkitpro.org>
# Maintainer: 46620 <46620osu@gmail.com>

pkgname=('libnx-git')
pkgver=4.4.2.r7.gcb6f366a
pkgrel=1
pkgdesc="Nintendo Switch AArch64-only userland library."
arch=('any')
license=('custom')
url="http://github.com/switchbrew"
makedepends=('devkitA64')
groups=('switch-dev')
conflicts=('libnx')
provides=('libnx')
options=(!strip libtool staticlibs)
source=(
  ${pkgname}::git+https://github.com/switchbrew/libnx
)

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {

  cd ${srcdir}/${pkgname}/nx
  make

}

package() {

  cd ${srcdir}/${pkgname}/nx
  make DESTDIR=$pkgdir install

}

sha256sums=('SKIP')