# Maintainer: Zhuoyun Wei pkgname=etcd-bin _pkgname=etcd pkgver=3.0.4 pkgrel=2 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=('788f9f74e605cf33be21f2f3a7c96e6691efd5e09a081d18dc222a78d080b917' '3add3f90586de94d658dd4fdb30b2cee7e742f1d703d8183bb790f151a827ad4' '177f2b9c4cf1570719557f9278183cfa40fbe6d6d9879c5cea0c4b73268b3e3b') 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: