# Maintainer: Zhuoyun Wei pkgname=etcd-bin _pkgname=etcd pkgver=3.5.9 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=('d59017044eb776597eca480432081c5bb26f318ad292967029af1f62b588b042' '6b2921568bd96f5bb48ba61d2b9673f42e49eb90fda35a7003fbac469a226a13' '4b61e989a358a76df6b7ff68d5a026a042a671ad8d8d67a0244a58e80b61082a') 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: