From a9ddd92f12394ac158418b6e37cc6a82f7f265c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Sat, 20 Jul 2024 20:55:01 +0300 Subject: [PATCH] =?UTF-8?q?name=3D"go-bin"=20version=3D'1.22.4'=20release?= =?UTF-8?q?=3D'3'=20=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=D1=8C=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=B2=20/usr/b?= =?UTF-8?q?in/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go-bin/alr.sh | 8 ++++++-- go-bin/postinstall.sh | 2 ++ go-bin/postremove.sh | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 go-bin/postinstall.sh create mode 100644 go-bin/postremove.sh diff --git a/go-bin/alr.sh b/go-bin/alr.sh index a946e3c..be07295 100644 --- a/go-bin/alr.sh +++ b/go-bin/alr.sh @@ -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" } \ No newline at end of file diff --git a/go-bin/postinstall.sh b/go-bin/postinstall.sh new file mode 100644 index 0000000..2e4c1a2 --- /dev/null +++ b/go-bin/postinstall.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +ln -s /usr/lib/go/bin/go /usr/bin/go \ No newline at end of file diff --git a/go-bin/postremove.sh b/go-bin/postremove.sh new file mode 100644 index 0000000..7811f8e --- /dev/null +++ b/go-bin/postremove.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +rm -f /usr/lib/go/bin/go /usr/bin/go \ No newline at end of file