This commit is contained in:
Ella-0 2021-02-23 21:42:15 +00:00
parent f772cfd434
commit 8d8cf195bd
3 changed files with 77 additions and 0 deletions

23
templates/go.build.sh Normal file
View file

@ -0,0 +1,23 @@
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
}