arch/pkg/de-p1st-gnupg/PKGBUILD
2021-06-15 12:39:36 +02:00

40 lines
1.2 KiB
Bash

# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=gnupg
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.6
pkgrel=1
pkgdesc="gnupg with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
depends=('gnupg' 'holo' 'git' 'base')
makedepends=('git')
install='.install'
source=("git+${url}.git" 'git+https://github.com/ioerror/duraconf.git')
noextract=()
sha256sums=('SKIP' 'SKIP')
build() {
# copy gpg.conf from duraconf harded configs git repo as gpg.conf.template
cp duraconf/configs/gnupg/gpg.conf "${_reponame}/pkg/${pkgname}/gpg.conf.template"
cd "${_reponame}/pkg/${pkgname}"
# gpg.conf.template -> gpg.conf
./generate-gpg-conf.sh
}
package() {
cd "${_reponame}/pkg/${pkgname}"
install -dm0700 "$pkgdir"/etc/skel/.gnupg/
install -Dm0600 gpg.conf "$pkgdir"/etc/skel/.gnupg/gpg.conf
install -Dm0600 gpg-agent.conf "$pkgdir"/etc/skel/.gnupg/gpg-agent.conf
install -Dm0544 interactive-shell.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/bash.bashrc.holoscript
install -Dm0544 interactive-shell.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/zsh/zshrc.holoscript
install -Dm0644 99_import_pubkey.sh "$pkgdir"/etc/profile.d/99_import_pubkey.sh
}