# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=etcd pkgver=2.3.4 pkgrel=0 pkgdesc="A highly-available key value store for shared configuration and service discovery" url="https://github.com/coreos/etcd" arch="x86_64" license="APACHE2.0" depends="" depends_dev="" makedepends="$depends_dev go" install="$pkgname.pre-install" subpackages="" pkgusers="$pkgname" pkggroups="$pkgname" source="$pkgname-$pkgver.tar.gz::https://github.com/coreos/etcd/archive/v$pkgver.tar.gz $pkgname.confd $pkgname.initd" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./build } package() { cd "$builddir" mkdir -p "$pkgdir"/var/lib/$pkgname chown -R $pkgusers:$pkggroups "$pkgdir"/var/lib/$pkgname install -Dm755 bin/etcdctl "$pkgdir"/usr/bin/etcdctl install -Dm755 bin/etcd "$pkgdir"/usr/bin/etcd install -Dm755 $srcdir/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -Dm755 $srcdir/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="cad55d4cdf050094363abc85e3f362cf etcd-2.3.4.tar.gz ac04c0d36942fff31da8a9abe0ac4b68 etcd.confd 3ac0aecccd36288a5b72136da7c6d133 etcd.initd" sha256sums="c08f68c3d21929ed3683fe94acefcd871bb3c4339117e745033bf2fb990966a9 etcd-2.3.4.tar.gz 2f3d37317ccaaddf4ec53e77be9419d63590d0114edcae383f47c0607dd643a9 etcd.confd 6334c8578a3eb7054ece4427446cc8bbc1b8ddb1794ff397ff9ae405c0d391f6 etcd.initd" sha512sums="1c062c4c44bf288c202361c661a393271a679153e842da96887b8ce8890f52902be528ead871cb7209705708db9b83ccab2f950b28924071986331d0ad54e5d6 etcd-2.3.4.tar.gz 440c9f23decb318c565a79d376b107dbd2333e72d5d812ec1460732543348737468b3e66e82e06a1afa0f09760c1eb066804a668a24e92a23977758727e049d2 etcd.confd 99271b1ae4a5636ae2332a98d35a5d9e27cac9154d5ede7952b0627caca53ef0b0d8164aa18f53c25e42e969b80e534930c2a3ed0bd0a1fdaec093075016355c etcd.initd"