# Template file for 'rcm'
pkgname=rcm
version=1.3.3
revision=1
archs=noarch
build_style=gnu-configure
checkdepends="python3-cram"
depends="perl"
short_desc="Management suite for dotfiles"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/thoughtbot/rcm"
distfiles="https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz"
checksum=935524456f2291afa36ef815e68f1ab4a37a4ed6f0f144b7de7fb270733e13af

do_check() {
	# find '-perm' errors on *hooks* tests
	:
}

post_build() {
	# Fix shebangs on binaries
	for binary in lsrc mkrc rcdn rcup ; do
		sed -i 's|#!/bin/sh|#!/usr/bin/env bash|g' bin/"$binary"
	done
}

post_install() {
	vlicense LICENSE
}
