mirror of
https://github.com/SinTan1729/lure-repo.git
synced 2024-12-26 22:58:37 -06:00
Disable self-update for topgrade
This commit is contained in:
parent
acfe0fad4c
commit
dafbd27030
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
name="topgrade"
|
name="topgrade"
|
||||||
version=10.3.1
|
version=10.3.1
|
||||||
release=1
|
release=2
|
||||||
desc="Invoke the upgrade procedure of multiple package managers"
|
desc="Invoke the upgrade procedure of multiple package managers"
|
||||||
architectures=('amd64' 'aarch64' 'armv7')
|
architectures=('amd64' 'aarch64' 'armv7')
|
||||||
maintainer='SinTan1729'
|
maintainer='SinTan1729'
|
||||||
|
@ -15,8 +15,11 @@ checksums_amd64=('c561de3c965e618b9af72ffcba9cecdaaf76027b0e88954fa8328267d433b6
|
||||||
checksums_aarch64=('b3ef6a99fdd4777f440402b2d708276b03f7ade80b61a0d73a7039b6896d62c7')
|
checksums_aarch64=('b3ef6a99fdd4777f440402b2d708276b03f7ade80b61a0d73a7039b6896d62c7')
|
||||||
checksums_armv7=('9702515aa7ea31d33f2c1b2a2d1f766adab8a6915f2ac499076528305a381c5d')
|
checksums_armv7=('9702515aa7ea31d33f2c1b2a2d1f766adab8a6915f2ac499076528305a381c5d')
|
||||||
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/share/man/man8/topgrade.8"
|
install -Dm644 ./topgrade.8 "$pkgdir/usr/local/share/man/man8/topgrade.8"
|
||||||
|
|
Loading…
Reference in a new issue