iglunix/pkgs/github-cli/build.sh

25 lines
380 B
Bash
Raw Normal View History

2021-03-03 10:56:06 +00:00
pkgname=github-cli
pkgver=1.6.2
fetch() {
curl -L "https://github.com/cli/cli/archive/v1.6.2.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mv cli-$pkgver $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
ckati
}
package() {
cd $pkgname-$pkgver
install -Dm755 bin/gh $pkgdir/usr/bin/gh
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}