summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be7c2d5c025c2224449c9919c23c2aeec76e8e0e (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
26
27
28
29
30
31
# Maintainer: Dancheg97 <dangdancheg@gmail.com>

pkgname=gen-tools
pkgver=1
pkgrel=1
pkgdesc="Tool for generating project templates written in go."
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
url="https://dancheg97.ru/dancheg97/gen-tools"
options=(!lto)
license=('GPL3')
depends=(
  'pacman>5'
  'git'
)
optdepends=(
  'sudo: privilege elevation'
  'doas: privilege elevation'
)
makedepends=('go>=1.18')
checks=("skip")

build() {
  git clone https://dancheg97.ru/dancheg97/gen-tools
  cd gen-tools
  go build .
}

package() {
  cd ..
  install -Dm744 $srcdir/gen-tools/gen-tools $pkgdir/usr/bin/gen-tools
}