# Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
# Contributor: Kewl <xrjy@nygb.rh.bet(rot13)>
# Contributor: Adam Nielsen <malvineous@shikadi.net>

pkgname='etc-update'
pkgdesc="CLI to interactively merge .pacnew configuration files"
pkgver=3.0.69
pkgrel=1
arch=('any')
url="https://wiki.gentoo.org/wiki/Handbook:X86/Portage/Tools#etc-update"
license=('GPL')
depends=('bash')
makedepends=('git')
optdepends=('dialog: for the menu mode')
backup=("etc/etc-update.conf")
source=("https://github.com/gentoo/portage/archive/portage-${pkgver}.tar.gz")
sha512sums=('20370ddaa3a018cd34c69e6a80b495aa83d8a4651b8337eb490c736fb99a4af5e9706297dcca089d5111b53183b5b38c26b73b3a5fbc4fa7de310c3833c99d33')
b2sums=('4ac99278f65e68bbd5cecdf7eb9de32426337d3d68be0e933bf75fc6f29b1fcb324114b29a57aa9e41910bc948c9346f5fcffe941d259f1c2b252bb7bbf3ddb0')

package() {
	cd portage-portage-${pkgver}
	install -vDm755 bin/${pkgname} -t "${pkgdir}/usr/bin"
	install -vDm644 cnf/${pkgname}.conf -t "${pkgdir}/etc"
	install -vDm644 man/${pkgname}.1 -t "${pkgdir}/usr/share/man/man1"
}
