# Template file for 'keychain'
pkgname=keychain
version=2.7.1
distfiles="http://www.funtoo.org/archive/$pkgname/$pkgname-$version.tar.bz2"
build_style=custom-install
short_desc="keychain manager for ssh-agent and gpg-agent"
maintainer="Mike Rosset <mike.rosset@gmail.com>"
homepage="http://www.funtoo.org/wiki/Keychain"
license="GPL-2"
checksum=1107fe3f78f6429d4861d64c5666f068f159326d22ab80a8ed0948cb25375191
long_desc="
 Keychain helps you to manage ssh and GPG keys in a convenient and secure manner.
 It acts as a frontend to ssh-agent and ssh-add, but allows you to easily have 
 one long running ssh-agent process per system, rather than the norm of one 
 ssh-agent per login session."

Add_dependency run dash
Add_dependency build perl

do_build()
{
	export PATH=/usr/lib/perl5/core_perl/bin/:$PATH
  	make ${makejobs}
}

do_install()
{
	install -Dm755 keychain ${DESTDIR}/usr/bin/keychain
	install -Dm644 keychain.1 ${DESTDIR}/usr/share/man/man1/keychain.1
}
