summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0883747a3d8014157e6d312b9aa209b2f1b1ed83 (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
# Maintainer: windx-foobar <bezalkogolnycoder at gmail dot com>

pkgname='goto-ssh-bin'
pkgver=1.2.0
pkgrel=2
pkgdesc='A simple terminal SSH manager that provides you with an easy access to the list of your favorite SSH servers.'
arch=('any')
license=('MIT')
url='https://github.com/grafviktor/goto'
source=("https://github.com/grafviktor/goto/releases/download/v${pkgver%b*}/goto-v${pkgver%b*}.zip"
        "https://raw.githubusercontent.com/grafviktor/goto/refs/heads/develop/LICENSE")
b2sums=('03eeeda39ebb515a0f0b3a20d424f1d7e4ea12943e2bf9df85ba700728194214f83363b543d93fce4d395e08223296914e732107c402832a7a03dbfe5770f1e4'
        '5727b772a1c4851aabc85e184cbb043e555e7db727b8183aefba4082772b8ffad71748bf0709ea9d32933a8dc0db9a44ddeebf6b6ee5b5a65bb432ca61a57cd5')
provides=('goto-ssh-bin' 'gg-ssh-bin')

package() {
    depends=('openssh')

    _pkgname="${pkgname/-bin/''}"
    _pkgname_link="${_pkgname/goto/'gg'}"

    install -Dm755 "${srcdir}"/goto-v${pkgver%b*}/gg-lin "${pkgdir}"/usr/bin/${_pkgname}
    ln -s /usr/bin/${_pkgname} "${pkgdir}"/usr/bin/${_pkgname_link}

    install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
}