# Maintainer: Zhuoyun Wei pkgname=etcd-bin _pkgname=etcd pkgver=3.2.0 pkgrel=1 pkgdesc='A highly-available key value store for shared configuration and service discovery - binary version' arch=('x86_64') url='https://github.com/coreos/etcd' license=('Apache') provides=('etcd') conflicts=('etcd' 'etcd-git') backup=('etc/etcd/etcd.conf.yml') install="etcd.install" source=("https://github.com/coreos/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-linux-amd64.tar.gz" "https://github.com/coreos/${_pkgname}/raw/v${pkgver}/contrib/systemd/${_pkgname}.service" "https://github.com/coreos/${_pkgname}/raw/v${pkgver}/${_pkgname}.conf.yml.sample") sha256sums=('f2528f5d499720f2fba7a8ff544d73f185316db6d7896ed2b84f0ca3bb84471d' '400b28d6e643d1f60d89813e7acdf6b80c9bee42711e650a058101e7746173e9' 'ef251ee7a9e4ba03ec98af5b61ef291a85cf5bf3f216cbc3c876aab1dec3ab8d') package() { cd ${srcdir} install -Dm644 etcd.conf.yml.sample ${pkgdir}/etc/etcd/etcd.conf.yml install -Dm644 etcd.service ${pkgdir}/usr/lib/systemd/system/etcd.service cd "${_pkgname}-v${pkgver}-linux-amd64" install -Dm755 etcd ${pkgdir}/usr/bin/etcd install -Dm755 etcdctl ${pkgdir}/usr/bin/etcdctl } # vim:set ts=2 sw=2 et: