summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9623702dc79
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+pkgbase=ninfs
+pkgname=(ninfs ninfs-gui)
+pkgver=1.4
+pkgrel=1
+pkgdesc="FUSE filesystem Python scripts for Nintendo console files"
+arch=($CARCH)
+license=(MIT)
+url='https://github.com/ihaveamac/ninfs'
+makedepends=('python-setuptools' 'python-pycryptodomex' 'unzip')
+options=(!strip)
+source=("${pkgbase}-${pkgver}-src.zip::${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}-src.zip")
+sha256sums=('5fdbb1850abea4b9646577dba764832aaa3bf3f0b12b686ed343e5d42a32847d')
+noextract=("${pkgbase}-${pkgver}-src.zip")
+
+build() {
+ unzip "${srcdir}/${pkgbase}-${pkgver}-src.zip" -d "${srcdir}/ninfs"
+ cd "${srcdir}/ninfs"
+ python setup.py build
+}
+
+package_ninfs() {
+ depends=("python>=3.6.1" "python-pycryptodomex" "fuse2" "openssl>=1.1")
+ cd "${srcdir}/ninfs"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ rm -f "$pkgdir/usr/bin/ninfs"
+ rm -rf "$pkgdir/usr/share"
+}
+
+package_ninfs-gui() {
+ depends=("ninfs=$pkgver-$pkgrel" "python-appjar" "tk")
+ install="NinFSGUI.install"
+ cd "${srcdir}/ninfs"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ rm -f "$pkgdir/usr/bin/mount_"*
+ rm -rf "$pkgdir/usr/lib"
+ PYTHONPATH="$pkgdir/usr:$PYTHONPATH" python -mninfs --install-desktop-entry "$pkgdir/usr/share"
+}