2021-04-29 12:09:36 +02:00
|
|
|
# Maintainer: Daniel Langbein <daniel@systemli.org>
|
|
|
|
_pkgname=gnupg
|
|
|
|
_reponame=arch
|
|
|
|
pkgname="de-p1st-$_pkgname"
|
2021-04-29 14:24:57 +02:00
|
|
|
pkgver=0.0.2
|
2021-05-11 22:34:00 +02:00
|
|
|
pkgrel=2
|
2021-04-29 12:09:36 +02:00
|
|
|
pkgdesc="gnupg with configuration"
|
|
|
|
arch=('any')
|
|
|
|
url="https://codeberg.org/privacy1st/${_reponame}"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('gnupg')
|
|
|
|
makedepends=('git')
|
|
|
|
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-04-29 14:24:57 +02:00
|
|
|
install -Dm0644 gpg.conf "$pkgdir"/etc/skel/.gnupg/gpg.conf
|
|
|
|
install -Dm0644 gpg-agent.conf "$pkgdir"/etc/skel/.gnupg/gpg-agent.conf
|
|
|
|
install -Dm0644 99_gnupg.sh "$pkgdir"/etc/profile.d/99_gnupg.sh
|
2021-04-29 12:09:36 +02:00
|
|
|
}
|