upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / signing-party / repos / community-x86_64 / PKGBUILD
blob52c53064fd9247d32f23cc73cbadff16a6680c36
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Contributor: C. Dominik Bódi <dominik dot bodi at gmx dot de>
4 pkgname=signing-party
5 pkgver=2.11
6 pkgrel=1
7 pkgdesc="Collection for all kinds of pgp related things, including signing scripts, party preparation scripts, etc."
8 arch=(x86_64)
9 url="https://salsa.debian.org/signing-party-team/signing-party"
10 license=(GPL)
11 depends=(libmd
12          perl-class-methodmaker
13          perl-gnupg-interface
14          perl-mailtools
15          perl-mime-tools
16          perl-net-idn-encode 
17          perl-term-readkey
18          perl-text-template
19          qprint)
20 optdepends=('python: keyart support'
21             'imagemagick: photo uid support in gpgsigs'
22             'perl-gd: springgraph support'
23             'qrencode: QR code support in gpg-key2latex'
24             'texlive-latexextra: QR code support in gpg-key2latex'
25             'noto-fonts: fonts for pretty printouts'
26             'noto-fonts-cjk: fonts for pretty printouts')
27 source=("${url}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.bz2"
28         'gpgwrap_makefile.patch')
29 sha256sums=('7413024a84546d7aa61175874e7158daa02dac085b64540d7283f9e0161b6a7c'
30             '1a5b7ec8dca7642b744270ab5011707f9f4b732cba8062c76b5195c40f13f5e0')
32 prepare() {
33     cd ${pkgname}-v${pkgver}
34     # Remove useless buggy Makefile
35     rm gpgwrap/src/Makefile
36     patch -p1 -i ../gpgwrap_makefile.patch
39 build() {
40     cd ${pkgname}-v${pkgver}
41     make
44 package() {
45     cd ${pkgname}-v${pkgver}
46     make DESTDIR="${pkgdir}" install
48     # Manually install all files the Makefiles in the subpackages are not installing
49     # TODO: Fix this upstream instead
51     install -Dm644 README -t "${pkgdir}"/usr/share/doc/signing-party/
53     for project in caff gpgdir gpg-key2latex gpg-key2ps gpglist gpg-mailkeys gpgparticipants gpgsigs ; do
54         install -Dm755 ${project}/${project} -t "${pkgdir}"/usr/bin/
55         install -Dm644 ${project}/${project}.1 -t "${pkgdir}"/usr/share/man/man1/
56     done
58     install -Dm755 caff/{pgp-clean,pgp-fixkey} -t "${pkgdir}"/usr/bin/
59     install -Dm644 caff/{pgp-clean,pgp-fixkey}.1 -t "${pkgdir}"/usr/share/man/man1/
60     install -Dm644 caff/{caffrc.sample,README*} -t "${pkgdir}"/usr/share/doc/signing-party/caff/
62     install -Dm644 gpg-key2ps/README -t "${pkgdir}"/usr/share/doc/signing-party/gpg-key2ps/
64     install -Dm755 gpgparticipants/gpgparticipants-prefill -t "${pkgdir}"/usr/bin/
65     install -Dm644 gpgparticipants/gpgparticipants-prefill.1 -t "${pkgdir}"/usr/share/man/man1/
67     install -Dm644 gpgsigs/gpgsigs-lt2k5{,-annotated}.txt -t "${pkgdir}"/usr/share/doc/signing-party/examples/gpgsigs/
69     install -Dm755 gpgwrap/src/gpgwrap -t "${pkgdir}"/usr/bin/
70     install -Dm644 gpgwrap/doc/gpgwrap.1 -t "${pkgdir}"/usr/share/man/man1/
72     install -Dm644 keyanalyze/{keyanalyze,process_keys,pgpring/pgpring}.1 -t "${pkgdir}"/usr/share/man/man1/
73     install -Dm755 keyanalyze/{allkeys,analyze}.sh -t "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/
74     install -Dm644 keyanalyze/README -t "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/
76     install -Dm755 keyanalyze/scripts/* -t "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/scripts/
77     chmod 644 "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/scripts/top50comments.txt
78     install -Dm755 keyanalyze/willy/* -t "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/willy/
79     chmod 644 "${pkgdir}"/usr/share/doc/signing-party/examples/keyanalyze/willy/README
81     install -Dm755 keyart/keyart -t "${pkgdir}"/usr/bin/
82     install -Dm644 keyart/doc/keyart.1 -t "${pkgdir}"/usr/share/man/man1/
83     install -Dm644 keyart/{README,doc/{druken-bishop.txt,party-worksheet}} -t "${pkgdir}"/usr/share/doc/signing-party/keyart/
84     install -Dm755 keyart/doc/examples/party.sh -t "${pkgdir}"/usr/share/doc/signing-party/examples/keyart/