arch/pkg/de-p1st-gnupg/PKGBUILD

39 lines
803 B
Bash
Raw Normal View History

2021-04-29 12:09:36 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=gnupg
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="gnupg with configuration"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
groups=()
depends=('gnupg')
makedepends=('git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+${url}.git" 'git+https://github.com/ioerror/duraconf.git')
noextract=()
sha256sums=('SKIP' 'SKIP')
build() {
cp duraconf/configs/gnupg/gpg.conf "${_reponame}/pkg/${pkgname}/gpg.conf.template"
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}"
install -Dm0644 gpg.conf "$pkgdir"/etc/gnupg/gpgconf.conf
}