void-packages/srcpkgs/profile-cleaner/template

24 lines
895 B
Bash

# Template file for 'profile-cleaner'
pkgname=profile-cleaner
version=2.44
revision=1
build_style=gnu-makefile
depends="bash sqlite bc parallel findutils"
short_desc="Reduces profile size by cleaning their sqlite databases"
maintainer="Philipp Hirsch <itself@hanspolo.net>"
license="MIT"
homepage="https://github.com/graysky2/profile-cleaner"
distfiles="https://github.com/graysky2/profile-cleaner/archive/refs/tags/v${version}.tar.gz"
checksum=9417e3d92d01dddba73fb43ac525b4b82c14e1501f81baccb9e990885323a0c2
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
}