summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf3d4112e0f00657bb105dbcbc20a0169dfca2e4 (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
32
33
# Maintainer: Jeffrey Zhang zhang.lei.fly@gmail.com
pkgname=assh-git
_pkgname=assh
pkgver=2.9.3
pkgrel=1
pkgdesc='make your ssh client smarter https://manfred.life/assh'
arch=('any')
url='https://github.com/moul/assh.git'
license=('MIT')
depends=()
makedepends=('git' 'go')
conflicts=()
provides=('assh')
source=("git+https://github.com/moul/assh.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --tags | sed 's/^v//;s/-/./g'
}

build() {
    cd "${srcdir}/${_pkgname}"
    GOPATH=${srcdir} \
        GO111MODULE=on \
        go build -modcacherw -o assh
}

package() {
    cd ${srcdir}/${_pkgname}
    install -Dm755 assh ${pkgdir}/usr/bin/assh
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
}