1 # Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
2 # PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
8 pkgdesc="A shell script that automates the process of signing Git sources via GPG"
10 url="https://github.com/NicoHood/gpgit"
12 depends=('bash' 'gnupg' 'git' 'xz')
13 checkdepends=('shellcheck')
14 optdepends=('jq: Github API upload'
15 'curl: Github API upload'
16 'lzip: Compression option'
17 'zstd: Compression option')
18 source=("${pkgname}-${pkgver}.tar.xz::https://github.com/NicoHood/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz"
19 "${pkgname}-${pkgver}.tar.xz.asc::https://github.com/NicoHood/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.xz.asc")
20 sha512sums=('3c7577d72ce74e5bab1f1ba752539d5977c5746c07d2f71fc61fdab50f9808dcab563070fd1c40f85a119e7edbecc6787a4e250921235e19e6eec0cc0c82a94d'
22 # NicoHood <archlinux {cat} nicohood {dog} de>
23 validpgpkeys=('97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161')
26 # https://github.com/NicoHood/GPGit/issues/37
27 sed -i '/shellcheck/s/-o all//' "${pkgname}-${pkgver}"/Makefile
28 make -C "${pkgname}-${pkgver}" test
32 make -C "${pkgname}-${pkgver}" DESTDIR="${pkgdir}" install
33 install -Dm 644 "${pkgname}-${pkgver}/LICENSE" \
34 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"