# Template file for 'profile-cleaner'
pkgname=profile-cleaner
version=2.45
revision=1
build_style=gnu-makefile
depends="bash sqlite bc parallel findutils"
short_desc="Reduces profile size by cleaning their sqlite databases"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/graysky2/profile-cleaner"
distfiles="https://github.com/graysky2/profile-cleaner/archive/refs/tags/v${version}.tar.gz"
checksum=af3d169b26e4d845741e24d8c036011c746aa921dafe195f1f65a34a2cceed95

post_install() {
	# makefile shipped with the package shortens profile-cleaner to pc,
	# thus causing conflict with the 'pc' package.
	unlink ${DESTDIR}/usr/bin/pc
	mv ${DESTDIR}/usr/share/man/man1/pc.1 \
		${DESTDIR}/usr/share/man/man1/profile-cleaner.1
	mv ${DESTDIR}/usr/share/zsh/site-functions/_pc \
		${DESTDIR}/usr/share/zsh/site-functions/_profile-cleaner
	vlicense LICENSE
}
