mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-25 23:58:36 -06:00
Disable self-update for topgrade
This commit is contained in:
parent
a71cf3f467
commit
e4c4d26385
1 changed files with 6 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
pkgname="topgrade-bin"
|
pkgname="topgrade-bin"
|
||||||
_pkgname="topgrade"
|
_pkgname="topgrade"
|
||||||
pkgver=10.3.1
|
pkgver=10.3.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
pkgdesc="Invoke the upgrade procedure of multiple package managers"
|
||||||
arch=('x86_64' 'aarch64' 'armv7h')
|
arch=('x86_64' 'aarch64' 'armv7h')
|
||||||
url='https://github.com/topgrade-rs/topgrade'
|
url='https://github.com/topgrade-rs/topgrade'
|
||||||
|
@ -16,8 +16,11 @@ b2sums_x86_64=('62c07014309f15a7dc5dc64db6a4504bef12bfb39de5a537d1c55d36aab26fdc
|
||||||
b2sums_aarch64=('2b38791caaceb38ca4b57c03ba7969443270eae4ecb75967082bc1952ba2ad370581e49401bf11335e3da3049678adb9598d9a6612304cfebd48dcd49c5d2b33')
|
b2sums_aarch64=('2b38791caaceb38ca4b57c03ba7969443270eae4ecb75967082bc1952ba2ad370581e49401bf11335e3da3049678adb9598d9a6612304cfebd48dcd49c5d2b33')
|
||||||
b2sums_armv7h=('11e56b1438c31fc582ac8a9fbf91446ac06fbeeb2a69a186606d263ecf242d575d676dc1934bfd64a1fe4cb01b4204ce0c5a406d624c6eb4cf9af1bff200ecd3')
|
b2sums_armv7h=('11e56b1438c31fc582ac8a9fbf91446ac06fbeeb2a69a186606d263ecf242d575d676dc1934bfd64a1fe4cb01b4204ce0c5a406d624c6eb4cf9af1bff200ecd3')
|
||||||
package() {
|
package() {
|
||||||
# binary
|
# disable self-update as it won't work
|
||||||
install -Dm755 ./topgrade "$pkgdir/usr/local/bin/topgrade"
|
echo '#!/bin/sh'$'\n\n''TOPGRADE_NO_SELF_UPGRADE=true /opt/topgrade/topgrade' > topgrade-sh
|
||||||
|
# install binary
|
||||||
|
install -Dm755 ./topgrade "$pkgdir/opt/topgrade/topgrade"
|
||||||
|
install -Dm755 ./topgrade-sh "$pkgdir/usr/local/bin/topgrade"
|
||||||
# manpage
|
# manpage
|
||||||
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > topgrade.8
|
./topgrade --gen-manpage | sed 's/.TH Topgrade 1/.TH Topgrade 8/' > topgrade.8
|
||||||
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/man/man8/topgrade.8"
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/man/man8/topgrade.8"
|
||||||
|
|
Loading…
Reference in a new issue