lots of package moving

This commit is contained in:
Ella-0 2021-10-25 11:26:07 +00:00
parent b3fa8f77d8
commit 5c6531dc76
21 changed files with 0 additions and 0 deletions

32
extra/go/build.sh Normal file
View file

@ -0,0 +1,32 @@
pkgname=go
pkgver=1.16
# TODO(Ella): should be loaded from `/etc/iglupkg.d/go.conf`
GOROOT_BOOTSTRAP=/usr/lib/go
fetch() {
curl -L "https://golang.org/dl/go${pkgver/_/}.src.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv go go-$pkgver
}
build() {
cd $pkgname-$pkgver
cd src
GOROOT_BOOTSTRAP=/usr/lib/go ./make.bash
}
package() {
cd $pkgname-$pkgver
install -d $pkgdir/usr/bin
install -d $pkgdir/usr/lib/go
cp -a bin pkg src lib misc api test $pkgdir/usr/lib/go
ln -sr $pkgdir/usr/lib/go/bin/go $pkgdir/usr/bin/go
ln -sr $pkgdir/usr/lib/go/bin/gofmt $pkgdir/usr/bin/gofmt
}
license() {
cd $pkgname-$pkgver
cat LICENSE
}