# Maintainer: hiddeninthesand # AUR Maintainer: Winston Astrachan # AUR Contributor: Ibrahim Tunali pkgname="git-secret-git" _gitname="git-secret" pkgver=1.781.569f2e8 pkgrel=2 pkgdesc="A bash-tool to store your private data inside a git repository" arch=('any') url="https://github.com/sobolevn/git-secret" license=('MIT') depends=('git' 'gnupg') source=("git+${url}.git") sha256sums=('SKIP') conflicts=("${_gitname}" "${_gitname}-bin") pkgver() { cd "${_gitname}" printf "1.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's|^v||' } build() { cd "${srcdir}/${_gitname}" make clean make build -j$(nproc) } package() { cd "$srcdir" cd "${_gitname}" install -Dm755 git-secret "$pkgdir/usr/bin/git-secret" install -Dm644 man/man1/*.1 -t "$pkgdir/usr/share/man/man1/" install -Dm644 man/man7/*.7 -t "$pkgdir/usr/share/man/man7/" }