diff options
author | ml | 2020-12-22 22:18:01 +0100 |
---|---|---|
committer | ml | 2020-12-22 22:22:12 +0100 |
commit | 7fb6918dbbec66bef524cd381db11fd83503327f (patch) | |
tree | 4512cf8422b95494a9a58e59a0fb62681d16e34b /PKGBUILD | |
parent | 034c9331f9a7d84675abd5afa028117173902e67 (diff) | |
download | aur-7fb6918dbbec66bef524cd381db11fd83503327f.tar.gz |
updpkg: ubports-installer-git 0.8.2_beta.r0.ga55cc1a-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 31 insertions, 26 deletions
@@ -1,6 +1,6 @@ -# Maintainer: ml <ml@visu.li> +# Maintainer: ml <> pkgname=ubports-installer-git -pkgver=0.6.0_beta.r0.g4712efb +pkgver=0.8.2_beta.r0.ga55cc1a pkgrel=1 pkgdesc='A simple tool to install Ubuntu Touch on UBports devices' arch=('any') @@ -10,48 +10,53 @@ depends=('android-tools' 'android-udev' 'electron') makedepends=('git' 'npm') provides=('ubports-installer') conflicts=('ubports-installer') -source=("${pkgname}::git+${url}.git" +source=("$pkgname::git+$url.git" ubports-installer ubports-installer.desktop - disable-update-udev-prompts.patch - electrondist.patch) + 01-disable-update-check.patch + 02-never-udev.patch + 03-electrondist.patch) sha256sums=('SKIP' 'e3167aa1469a33d1eca4dae377ed51675bea08e61e6d17f94f83a241538be56b' '7f59cb66ab7e59caeff93f697e47f26f43a9a221258f4d89dee580e41dd7a39a' - '6d2be9f0d81fdd3ea6e95585457f967d9889c5884c1645b4212ea95add202f4e' + 'f5a47dd84c2ce46528385a673d93e465132a80a5a72de5b4cf41e055f9f60fe4' + 'a9d899eaf4e8a004c20d7d9ff6af696aa9cd5602e5e95583f4fe27ecaa7aa03f' '768fcea52f63fed0bebb61861437db5f7e1f00358ad594c8d5593adc43a0f0c0') pkgver() { - cd "$pkgname" - git describe --long --tags | sed 's/-/_/;s/-/.r/;s/-/./' + cd "$pkgname" + git describe --long --tags | sed 's/-/_/;s/-/.r/;s/-/./' } prepare() { - cd "$pkgname" - for p in ../{disable-update-udev-prompts,electrondist}.patch; do - patch -Np1 <"$p" - done - npm install --no-audit --no-progress --no-fund --ignore-scripts electron@"$(</usr/lib/electron/version)" - npm run prerender + cd "$pkgname" + for p in ../{01-disable-update-check,02-never-udev,03-electrondist}.patch; do + echo "Applying $p" + patch -Np1 <"$p" + done + npm install --no-audit --no-progress --no-fund --ignore-scripts electron@"$(</usr/lib/electron/version)" + npm run prerender } build() { - cd "$pkgname" - node ./build.js -o linux -p dir -a x64 + cd "$pkgname" + node ./build.js -o linux -p dir -a x64 } package() { - install -Dm644 -t "${pkgdir}/usr/share/applications" ubports-installer.desktop - install -Dm755 -t "${pkgdir}/usr/bin" ubports-installer + install -Dm644 -t "$pkgdir/usr/share/applications" ubports-installer.desktop + install -Dm755 -t "$pkgdir/usr/bin" ubports-installer - cd "${pkgname}" - install -Dm644 -t "${pkgdir}/usr/share/ubports-installer" dist/linux-unpacked/resources/app.asar + cd "$pkgname" + install -Dm644 -t "$pkgdir/usr/share/ubports-installer" dist/linux-unpacked/resources/app.asar - find ./dist/linux-unpacked/resources/app.asar.unpacked -type d \( -name linux -o -name mac \) -print -exec rm -r {} + - cp -rt "${pkgdir}/usr/share/ubports-installer" dist/linux-unpacked/resources/app.asar.unpacked + find ./dist/linux-unpacked/resources/app.asar.unpacked -type d \( -name linux -o -name mac \) -print -exec rm -r {} + + cp -rt "$pkgdir/usr/share/ubports-installer" dist/linux-unpacked/resources/app.asar.unpacked - cd build/icons - for i in *x*.png; do - install -Dm644 "$i" "${pkgdir}/usr/share/icons/hicolor/${i%.png}/apps/ubports-installer.png" - done + find "$pkgdir" -type d -empty -delete -print + + cd build/icons + for i in *x*.png; do + install -Dm644 "$i" "$pkgdir/usr/share/icons/hicolor/${i%.png}/apps/ubports-installer.png" + done } |