summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 48c95a4c0e3d9b82163ee5e4831d172a4f3b7f0c (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
# Maintainer: averne <averne381@gmail.com>
pkgname=fuse-nx-git
pkgver=v1.1.r12.gd2c2f14
pkgrel=1
pkgdesc="Mount Nintendo Switch archives through FUSE"
arch=("i686" "pentium4" "x86_64" "arm" "armv7h" "armv6h" "aarch64")
url="https://github.com/averne/Fuse-Nx"
license=("GPL3")
makedepends=("git" "meson" "libgcrypt" "fuse")
provides=("fuse-nx")
source=("git+https://github.com/averne/Fuse-Nx.git")
md5sums=("SKIP")

pkgver() {
    cd $srcdir/Fuse-Nx
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd $srcdir/Fuse-Nx
    meson --prefix=/usr --buildtype=release build
}

build() {
    cd $srcdir/Fuse-Nx
    meson compile -C build
}

package() {
    cd $srcdir/Fuse-Nx
    DESTDIR="$pkgdir" meson install -C build
}