#!/usr/bin/env modbuild

eval $(modulecmd bash use Libraries)
pbuild::add_to_group 'Tools'

pbuild::set_download_url \
	"https://github.com/tmux/tmux/releases/download/${V_PKG}/$P-${V_PKG}.tar.gz"
pbuild::set_sha256sum \
	'tmux-2.8.tar.gz:7f6bf335634fafecff878d78de389562ea7f73a7367f268b66d37ea13617a2ba'

pbuild::install_docfiles 'CHANGES'
pbuild::install_docfiles 'COPYING'
pbuild::install_docfiles 'README'
pbuild::install_docfiles 'README.ja'

pbuild::post_install() {
	pbuild::install_shared_libs "${PREFIX}/bin/tmux" 'libevent'
}

# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:
