Skip to content

Instantly share code, notes, and snippets.

@glitsj16 glitsj16/PKGBUILD
Created May 2, 2019

Embed
What would you like to do?
_pkgname=do-agent
pkgname="${_pkgname}-bin"
pkgver=2.2.0
pkgrel=1
pkgdesc="DigitalOcean Agent for Enhanced Droplet Graphs - binary version"
url="https://github.com/digitalocean/do-agent"
arch=(x86_64)
license=(Apache)
options=(!strip)
provides=(do-agent)
conflicts=(do-agent)
source=("${url}/releases/download/${pkgver}/${_pkgname}_${pkgver}_amd64.deb"
"${url}/raw/master/LICENSE"
do-agent.service)
sha256sums=('a942b1c6903a92be3e1356d5c18278d19c7a1163b8bc7753036e0d1b8e39de8c'
'b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1'
'61974145d22a152d21cd12d8ff7216c375acc99dab2001dd56c6fe3b6ab6c650')
prepare() {
bsdtar -x --strip-components 4 -f data.tar.gz opt/digitalocean/bin/do-agent
}
package() {
install -Dm755 do-agent "$pkgdir/usr/bin/do-agent"
install -Dm644 do-agent.service "$pkgdir/usr/lib/systemd/system/do-agent.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.