makedeb
The Go programming language
Viewing /PKGBUILD
.
Click here to go back to the Git tree for go-bin.
# Maintainer: hiddeninthesand <hiddeninthesand at pm dot me>
# Contributor: Hunter Wittenborn <hunter@hunterwittenborn.com>
pkgname='go-bin'
pkgver='1.20.1'
pkgrel='1'
pkgdesc="The Go programming language"
arch=('x86_64')
conflicts=('golang-go' 'gccgo-go')
provides=("golang-go=${pkgver}" "gccgo-go=${pkgver}")
options=('!strip')
noextract=("${pkgname}-${pkgver}.tar.gz")
url="https://go.dev/"
source=("${pkgname}-${pkgver}.tar.gz::${url}/dl/go${pkgver}.linux-amd64.tar.gz")
b2sums=('2c5e21b224d346b8dabe22edd2dfc97026467e081a2960c0b2237d6ea741c0333b860ac89ab84e30dcd427a375829df9427ef193b3ed2b837cff1813fab6e69e')
package() {
mkdir -p "${pkgdir}/usr/local/"
tar -C "${pkgdir}/usr/local/" -xzf "./${pkgname}-${pkgver}.tar.gz"
mkdir -p "${pkgdir}/usr/bin/"
for i in 'go' 'gofmt'; do
ln -s "/usr/local/go/bin/${i}" "${pkgdir}/usr/bin/${i}"
chmod 755 "${pkgdir}/usr/local/go/bin/${i}"
done
}