[arch-commits] Commit in react-native-debugger/trunk (2 files)

Nicola Squartini tensor5 at archlinux.org
Sat May 30 13:17:37 UTC 2020


    Date: Saturday, May 30, 2020 @ 13:17:36
  Author: tensor5
Revision: 637417

upgpkg: react-native-debugger 0.11.3-2

Modified:
  react-native-debugger/trunk/PKGBUILD
  react-native-debugger/trunk/react-native-debugger.js

--------------------------+
 PKGBUILD                 |   28 +++++++++++++++++++---------
 react-native-debugger.js |    2 +-
 2 files changed, 20 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-30 12:22:11 UTC (rev 637416)
+++ PKGBUILD	2020-05-30 13:17:36 UTC (rev 637417)
@@ -2,8 +2,8 @@
 
 pkgname=react-native-debugger
 pkgver=0.11.3
-_commit=c70e9ea4bbe71a9813e77c23e431e493dc8ee41b
-pkgrel=1
+_commit=d9c649b228e9cb0080eaabef468a717b529f7143
+pkgrel=2
 pkgdesc='The standalone app for React Native Debugger, with React DevTools / Redux DevTools'
 arch=('any')
 url='https://github.com/jhen0409/react-native-debugger'
@@ -10,6 +10,7 @@
 license=('MIT')
 depends=('electron')
 makedepends=('asar' 'git' 'yarn')
+options=(!emptydirs)
 source=("git+https://github.com/jhen0409/react-native-debugger.git#commit=${_commit}"
         'iconPath.patch'
         'react-native-debugger.desktop'
@@ -17,13 +18,8 @@
 sha256sums=('SKIP'
             '75cd9814325bfcdfc5dc9f85a7ce75a021e4b3c8cd105b851eb804e7b580d474'
             'f63e79516db0feb2e76c366402cf266165c0f7eb282dc55703b800b91152867d'
-            '8cd406c3b2d091f2a2b73e5755682dc925bb1f75d0d425b82507136b350a4ceb')
+            '18968069e675630322077d065faa591f7f451a18b4a55d192aaf5da78e98c926')
 
-pkgver() {
-    cd ${pkgname}
-    git describe --tags | sed 's/^v//;s/-/+/g'
-}
-
 prepare() {
     cd ${pkgname}
 
@@ -46,7 +42,8 @@
 
     install -dm755 "${pkgdir}/usr/lib"
     rm dist/logo.png  # see iconPath.patch
-    asar pack dist "${pkgdir}/usr/lib/${pkgname}.asar"
+    # asar pack dist "${pkgdir}/usr/lib/${pkgname}.asar"
+    cp -r dist "${pkgdir}/usr/lib/${pkgname}"
 
     install -Dm755 ../${pkgname}.js "${pkgdir}/usr/bin/${pkgname}"
     install -Dm644 -t "${pkgdir}/usr/share/applications" ../${pkgname}.desktop
@@ -53,4 +50,17 @@
     install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.md
     install -Dm644 electron/logo.png \
         "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+
+    rm "${pkgdir}/usr/lib/${pkgname}/node_modules/loose-envify/cli.js"
+    find "${pkgdir}/usr/lib/${pkgname}/node_modules" \
+      -name 'bin' -prune -exec rm -r '{}' \; \
+      -or -name 'example' -prune -exec rm -r '{}' \; \
+      -or -name 'examples' -prune -exec rm -r '{}' \; \
+      -or -name 'test' -prune -exec rm -r '{}' \; \
+      -or -name 'tests' -prune -exec rm -r '{}' \; \
+      -or -name '*.md' -exec rm '{}' \; \
+      -or -name '*.markdown' -exec rm '{}' \; \
+      -or -name 'CHANGELOG*' -prune -exec rm -r '{}' \; \
+      -or -name 'Makefile' -exec rm '{}' \; \
+      -or -name '.*' -prune -exec rm -r '{}' \;
 }

Modified: react-native-debugger.js
===================================================================
--- react-native-debugger.js	2020-05-30 12:22:11 UTC (rev 637416)
+++ react-native-debugger.js	2020-05-30 13:17:36 UTC (rev 637417)
@@ -15,7 +15,7 @@
 process.argv.splice(0, 1);
 
 // Set application paths.
-const appPath = join(dirname(__dirname), "lib", `${name}.asar`);
+const appPath = join(dirname(__dirname), "lib", name);
 const packageJson = require(join(appPath, "package.json"));
 const productName = packageJson.productName;
 app.setAppPath(appPath);



More information about the arch-commits mailing list