Added go
This commit is contained in:
parent
f772cfd434
commit
8d8cf195bd
3 changed files with 77 additions and 0 deletions
23
templates/go.build.sh
Normal file
23
templates/go.build.sh
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue