diff options
author | 46620 | 2023-10-15 11:32:04 -0400 |
---|---|---|
committer | 46620 | 2023-10-15 11:32:04 -0400 |
commit | abb96e12d245489b31e6fe9f3b449f5c3b4bc9cb (patch) | |
tree | df9b2f0fc938a85c7ff737b5cc30af94131031ba | |
parent | 21bab4132cf1fa13041d67c849bf7399067ae7c8 (diff) | |
download | aur-abb96e12d245489b31e6fe9f3b449f5c3b4bc9cb.tar.gz |
git libnx
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 55 |
2 files changed, 34 insertions, 40 deletions
@@ -1,19 +1,18 @@ pkgbase = libnx-git - pkgdesc = Library for Nintendo Switch (NX) homebrew development (development version) - pkgver = 1.0.0.r15.gff8a95b + pkgdesc = Nintendo Switch AArch64-only userland library. + pkgver = 4.4.2.r7.gcb6f366a pkgrel = 1 - url = http://devkitpro.org + url = http://github.com/switchbrew arch = any - license = custom: ISC - depends = devkita64 + groups = switch-dev + license = custom + makedepends = devkitA64 provides = libnx conflicts = libnx options = !strip + options = libtool options = staticlibs - source = git+https://github.com/switchbrew/libnx.git - source = git+https://github.com/switchbrew/switch-examples.git - md5sums = SKIP - md5sums = SKIP + source = libnx-git::git+https://github.com/switchbrew/libnx + sha256sums = SKIP pkgname = libnx-git - @@ -1,45 +1,40 @@ -# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG +# Original Maintainer: Dave Murphy <davem@devkitpro.org> +# Maintainer: 46620 <46620osu@gmail.com> -pkgname=libnx-git -pkgver=1.0.0.r15.gff8a95b +pkgname=('libnx-git') +pkgver=4.4.2.r7.gcb6f366a pkgrel=1 -pkgdesc="Library for Nintendo Switch (NX) homebrew development (development version)" +pkgdesc="Nintendo Switch AArch64-only userland library." arch=('any') -url="http://devkitpro.org" -license=('custom: ISC') -depends=('devkita64') +license=('custom') +url="http://github.com/switchbrew" +makedepends=('devkitA64') +groups=('switch-dev') conflicts=('libnx') provides=('libnx') -source=("git+https://github.com/switchbrew/libnx.git" - "git+https://github.com/switchbrew/switch-examples.git") -md5sums=('SKIP' - 'SKIP') -options=(!strip staticlibs) +options=(!strip libtool staticlibs) +source=( + ${pkgname}::git+https://github.com/switchbrew/libnx +) pkgver() { - cd libnx - git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g' + cd $pkgname + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' } build() { - # set environment - source /etc/profile.d/devkita64.sh - make -C libnx + cd ${srcdir}/${pkgname}/nx + make + } package() { - make -C libnx/nx dist-bin - DEVKITPRO="$pkgdir/opt/devkitpro" - install -d "$DEVKITPRO"/libnx - bsdtar xf libnx/nx/libnx-*.tar.bz2 -C "$DEVKITPRO"/libnx - # examples - install -d "$DEVKITPRO"/examples - cp -rup switch-examples "$DEVKITPRO"/examples/switch - rm -rf "$DEVKITPRO"/examples/switch/.git - # fix permissions - chown -R root:root "$DEVKITPRO"/examples - find "$DEVKITPRO"/examples -type d -exec chmod +rx "{}" \+ - # license - install -Dm644 libnx/LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + cd ${srcdir}/${pkgname}/nx + make DESTDIR=$pkgdir install + } + +sha256sums=('SKIP') + |