iglunix/templates/go.build.sh

24 lines
307 B
Bash
Raw Normal View History

2021-02-23 21:42:15 +00:00
pkgname=
pkgver=
fetch() {
curl "" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
go build -o build
}
package() {
cd $pkgname-$pkgver
install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}