summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdc9a71f4dc0a382e9976b6e73c2c1eb6e5764b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Vincent Besançon <besancon.vincent@gmail.com>
# Based on Aaron Bull Schaefer <aaron@elasticdog.com> works for aur/transcrypt.
#
# This is a fork of transcrypt aur package fixing dependency for 'xxd'.
# The original version depends on 'xxd-standalone' which breaks 'vim' installations.
#
# shellcheck shell=bash
# shellcheck disable=SC2034,SC2164,SC2154
pkgname=transcrypt2
_pkgname=transcrypt
pkgver=2.2.3
pkgrel=1
pkgdesc='A script to configure transparent encryption of files within a Git repository (depends on xxd)'
install=${pkgname}.install
arch=('any')
url='https://github.com/elasticdog/transcrypt'
license=('MIT')
conflicts=('transcrypt')
provides=('transcrypt')
depends=('git' 'openssl' 'util-linux' 'xxd')
optdepends=('gnupg: config import/export support')
source=("https://github.com/elasticdog/${_pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('69cf95b2a4d7e89c1f5c84bc4c32aa35f78d08b8f457a003ab9e8be7361a24e5')

package() {
  cd "${_pkgname}-${pkgver}/"

  install -m 755 -D transcrypt "${pkgdir}/usr/bin/transcrypt"
  install -m 644 -D man/transcrypt.1 "${pkgdir}/usr/share/man/man1/transcrypt.1"
  install -m 644 -D LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"

  install -m 644 -D contrib/bash/transcrypt "${pkgdir}/usr/share/bash-completion/completions/transcrypt"
  install -m 644 -D contrib/zsh/_transcrypt "${pkgdir}/usr/share/zsh/site-functions/_transcrypt"
}