2021-04-29 12:09:36 +02:00
|
|
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
|
|
_pkgname=gnupg
|
|
|
|
_reponame=arch
|
|
|
|
pkgname="de-p1st-$_pkgname"
|
2021-06-15 11:13:24 +02:00
|
|
|
pkgver=0.0.5
|
|
|
|
pkgrel=1
|
2021-04-29 12:09:36 +02:00
|
|
|
pkgdesc="gnupg with configuration"
|
|
|
|
arch=('any')
|
|
|
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
|
|
|
license=('MIT')
|
2021-06-15 11:13:24 +02:00
|
|
|
depends=('gnupg' 'holo' 'git' 'base')
|
2021-04-29 12:09:36 +02:00
|
|
|
makedepends=('git')
|
2021-06-15 11:13:24 +02:00
|
|
|
install='.install'
|
2021-04-29 12:09:36 +02:00
|
|
|
source=("git+${url}.git" 'git+https://github.com/ioerror/duraconf.git')
|
|
|
|
noextract=()
|
|
|
|
sha256sums=('SKIP' 'SKIP')
|
|
|
|
|
|
|
|
build() {
|
2021-04-29 14:24:57 +02:00
|
|
|
# copy gpg.conf from duraconf harded configs git repo as gpg.conf.template
|
2021-04-29 12:09:36 +02:00
|
|
|
cp duraconf/configs/gnupg/gpg.conf "${_reponame}/pkg/${pkgname}/gpg.conf.template"
|
2021-04-29 14:24:57 +02:00
|
|
|
|
2021-04-29 12:09:36 +02:00
|
|
|
cd "${_reponame}/pkg/${pkgname}"
|
|
|
|
|
2021-04-29 12:17:48 +02:00
|
|
|
# gpg.conf.template -> gpg.conf
|
2021-04-29 12:10:47 +02:00
|
|
|
./generate-gpg-conf.sh
|
2021-04-29 12:09:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_reponame}/pkg/${pkgname}"
|
|
|
|
|
2021-06-14 23:39:19 +02:00
|
|
|
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
|
2021-06-15 00:28:52 +02:00
|
|
|
|
2021-06-15 11:13:24 +02:00
|
|
|
install -Dm0544 zshrc.holoscript "$pkgdir"/usr/share/holo/files/"$pkgname"/etc/zsh/zshrc
|
2021-04-29 12:09:36 +02:00
|
|
|
}
|