# Maintainer: Flaviu Tamas pkgname=docker2hosthosts pkgver=0.1.1 pkgrel=1 pkgdesc="Updates the host system's /etc/hosts whenever containers go up or down." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url='https://github.com/flaviut/docker2hosthosts' license=('Apache') depends=('openssl') makedepends=('cargo') source=("https://github.com/flaviut/${pkgname}/archive/v${pkgver}.tar.gz") md5sums=('032c2d049c9a138f0d2f736e871ac1f6') build() { cd "${srcdir}/${pkgname}-${pkgver}" cargo build --release } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -Dm755 "target/release/docker2hosthosts" -t "${pkgdir}/usr/bin/" install -Dm644 "docker2hosthosts.service" -t "${pkgdir}/usr/lib/systemd/system/" }