makedeb


git-secret-git 1.781.569f2e8-2


A bash-tool to store your private data inside a git repository

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for git-secret-git.

# Maintainer: hiddeninthesand <hiddeninthesand at pm dot me>

# AUR Maintainer: Winston Astrachan <winston dot astrachan at gmail dot com>
# AUR Contributor: Ibrahim Tunali <ibrahimtunali at gmail dot com>

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/"
}