summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b82f9fbdbb1566cf469291b8821d5d4ddfd3bdb (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
# Maintainer: Quentin Bourgeois <quentin+archlinux@bourgeois.eu>

pkgname=mc-agent
pkgver=20180114
pkgrel=1
pkgdesc='Simple ssh-agent that loads keys stored from Moolticute'
arch=('x86_64')
license=('GPL3')
depends=('moolticute')
makedepends=('git'
             'go')
url="https://github.com/raoulh/${pkgname}"
_gourl="${url##https://}"
install="${pkgname}.install"

build() {
    cd "${srcdir}"

    GOPATH="${srcdir}" go get -fix -v -x "${_gourl}"
}

package() {
    cd "${srcdir}"

    install -p -Dm 755 "${srcdir}/bin/mc-agent"                         \
            "${pkgdir}/usr/bin/mc-agent"
    install -Dm 644 "${srcdir}/src/${_gourl}/systemd/mc-agent.service"  \
            "${pkgdir}/usr/lib/systemd/user/mc-agent.service"
}