1
0
Fork 0
mirror of https://github.com/SinTan1729/aur-packages.git synced 2024-12-25 07:48:35 -06:00

Pass all arguments properly

This commit is contained in:
Sayantan Santra 2023-03-12 16:40:12 -05:00
parent cc46f8b3ca
commit ad2d270681

View file

@ -2,7 +2,7 @@
pkgname="topgrade-bin"
_pkgname="topgrade"
pkgver=10.3.2
pkgrel=1
pkgrel=2
pkgdesc="Invoke the upgrade procedure of multiple package managers"
arch=('x86_64' 'aarch64' 'armv7h')
url='https://github.com/topgrade-rs/topgrade'
@ -17,7 +17,7 @@ b2sums_aarch64=('20976e837888d628e1fd6c0e229514b25882622344966aab6e8c7a5ce92215f
b2sums_armv7h=('fc9652c83bcd9ca2cacfcccb5b0525746b494ebb93bef1f4ada4d4b33737ee41be2fbc09058b30e8bf24490fbdfdb69ca3fdbe26a5d68850fc00508da4b08f84')
package() {
# disable self-update as it won't work
echo '#!/bin/sh'$'\n\n''TOPGRADE_NO_SELF_UPGRADE=true /opt/topgrade/topgrade' > topgrade-sh
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"