summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5eace2eef6a31d9dca3801872bef4ecf8235efab (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.10.0.r0.g1ff23bee
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 --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;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
}