summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Lisin2019-10-13 00:07:00 +0200
committerMatthias Lisin2019-10-13 00:07:00 +0200
commitf98748263a000738a1500b0dc835320bac74a430 (patch)
treecb7fb4a0d54a19de772505e35de7a6d0d5d2d2fb
parentcad0f1417ac79dcf8bd7d1124fe9ca1dabb718e5 (diff)
downloadaur-f98748263a000738a1500b0dc835320bac74a430.tar.gz
Make package reproducible
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD13
2 files changed, 12 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 42432bd9872..5f5c981c71b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = ubports-installer-git
pkgdesc = A simple tool to install Ubuntu Touch on UBports devices
pkgver = 0.3.2_beta.r6.g15ed833
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ubports/ubports-installer
arch = any
license = GPL3
makedepends = git
makedepends = jq
+ makedepends = moreutils
makedepends = npm
depends = android-tools
depends = android-udev
diff --git a/PKGBUILD b/PKGBUILD
index efdba812f18..6e07c0cbe6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Matthias Lisin <ml@visu.li>
pkgname=ubports-installer-git
pkgver=0.3.2_beta.r6.g15ed833
-pkgrel=1
+pkgrel=2
pkgdesc='A simple tool to install Ubuntu Touch on UBports devices'
arch=(any)
url='https://github.com/ubports/ubports-installer'
license=('GPL3')
depends=('android-tools' 'android-udev' 'electron4')
-makedepends=('git' 'jq' 'npm')
+makedepends=('git' 'jq' 'moreutils' 'npm')
provides=('ubports-installer')
conflicts=('ubports-installer')
source=("$pkgname::git+${url}.git"
@@ -29,7 +29,7 @@ prepare() {
local version="$(sed s/^v// $dist/version)"
cd "$pkgname"
- local i; for i in ${source[@]}; do
+ for i in ${source[@]}; do
case ${i%::*} in
*.patch)
msg2 "Applying ${i}"
@@ -46,6 +46,13 @@ prepare() {
buildconfig-generic.json.orig > buildconfig-generic.json
npm uninstall --no-audit --cache "$srcdir/npm-cache" electron{-packager,-view-renderer} spectron
+
+ # Removing local references
+ for module in he sshpk; do
+ local target="node_modules/${module}/package.json"
+ msg2 "Removing local references from ${target}"
+ jq 'del(.man)' "$target" | sponge "$target"
+ done
}
build() {