diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cab588c2cf87 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: korjjj <korjjj+aur[at]gmail[dot]com> +# Contributor: xeross <contact at xeross dot me> +# Contributor: codekoala <codekoala at gmail dot com> + +pkgname=etcd +pkgver=2.0.13 +pkgrel=1 +pkgdesc='A highly-available key value store for shared configuration and service discovery.' +arch=('x86_64' 'i686') +url='https://github.com/coreos/etcd' +license=('Apache License 2') +makedepends=('go') +backup=('etc/conf.d/etcd') +provides=('etcdctl') +replaces=('etcdctl') +conflicts=('etcdctl') +install="${pkgname}.install" +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/coreos/${pkgname}/archive/v${pkgver}.tar.gz" + "${pkgname}.service" + "${pkgname}.conf") +md5sums=('29b0cacac8bfcbe7b094ea5638adec74' + 'dabe32f9e766b935c075b832672b2a79' + 'a6043503d766097eb9fb0d0e142b96f3') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./build +} + +package() { + install -Dm644 ${srcdir}/${pkgname}.conf ${pkgdir}/etc/conf.d/${pkgname} + install -Dm644 ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/bin/etcd ${pkgdir}/usr/bin/etcd + install -Dm755 ${srcdir}/${pkgname}-${pkgver}/bin/etcdctl ${pkgdir}/usr/bin/etcdctl + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -dm755 ${pkgdir}/usr/share/doc/${pkgname} + install -m644 ${srcdir}/${pkgname}-${pkgver}/Documentation/*.md -t ${pkgdir}/usr/share/doc/${pkgname} +} + +# vim:set ts=2 sw=2 et: |