name="go-bin"
version='1.22.4' release='3' символьная ссылка в /usr/bin/
This commit is contained in:
parent
6265a6da29
commit
a9ddd92f12
@ -1,6 +1,6 @@
|
||||
name="go-bin"
|
||||
version='1.22.4'
|
||||
release='2'
|
||||
release='3'
|
||||
desc="Compiler and tools for the Go programming language"
|
||||
desc_ru="Компилятор и инструменты для языка программирования Go"
|
||||
homepage="https://go.dev/"
|
||||
@ -26,8 +26,12 @@ checksums_386=('SKIP')
|
||||
sources_riscv64=("https://dl.google.com/go/go${version}.linux-riscv64.tar.gz")
|
||||
checksums_riscv64=('SKIP')
|
||||
|
||||
scripts=(
|
||||
['postinstall']='postinstall.sh'
|
||||
['postremove']='postremove.sh'
|
||||
)
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir/usr/lib/" "$pkgdir/usr/bin"
|
||||
cp -r "$srcdir/go" "$pkgdir/usr/lib/go"
|
||||
ln -s "$pkgdir/usr/lib/go/bin/go" "$pkgdir/usr/bin/go"
|
||||
}
|
2
go-bin/postinstall.sh
Normal file
2
go-bin/postinstall.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
ln -s /usr/lib/go/bin/go /usr/bin/go
|
2
go-bin/postremove.sh
Normal file
2
go-bin/postremove.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
rm -f /usr/lib/go/bin/go /usr/bin/go
|
Loading…
Reference in New Issue
Block a user