summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f34c069dc9eefe5e4a4fe3a84e82594a238c133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: El Bachir <bachiralfa@gmail.com>
pkgname=gt
pkgver=1.4.1
pkgrel=1
pkgdesc="A tree-like command-line tool written in Go"
arch=('x86_64')
url="https://github.com/elbachir-one/gt"
license=('MIT')
depends=('glibc')
makedepends=('go>=1.22')
source=("$pkgname-$pkgver.tar.gz::https://github.com/elbachir-one/gt/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('8bbfa5b9b3ef756f547d0f40a4de612ffa957a6eb45fee735a9737c0a8824189') 

build() {
  cd "$srcdir/$pkgname-$pkgver"
  export GOPATH="$srcdir/go"
  export GO111MODULE=on
  go build -o gt
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 gt "$pkgdir/usr/bin/gt"
  install -Dm644 gt.1 "$pkgdir"/usr/share/man/man1/gt.1
}