Date: Wednesday, October 27, 2021 @ 17:26:46
  Author: escondida
Revision: 1034728

translate-shell 0.9.6.12-2: use espeak-ng, don't repackage Unlicense, use 
pinned commit of release tag for src (to get PGP sig)

Modified:
  translate-shell/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-10-27 17:25:20 UTC (rev 1034727)
+++ PKGBUILD    2021-10-27 17:26:46 UTC (rev 1034728)
@@ -1,38 +1,42 @@
-# Maintainer: Ivy Foster <c...@escondida.tk>
+# Maintainer: Ivy Foster <i...@archlinux.org>
 
 pkgname=translate-shell
 pkgver=0.9.6.12
-pkgrel=1
+pkgrel=2
 pkgdesc='A command-line interface and interactive shell for Google Translate'
 arch=(any)
 url='https://www.soimort.org/translate-shell/'
-license=('custom:PublicDomain')
+license=(Unlicense)
 depends=(bash gawk)
+makedepends=(git)
 optdepends=(
        'aspell: spell checking'
        'curl: openSSL support'
+       'emacs: Emacs interface'
+       'espeak-ng: Text-to-Speech functionality'
        'fribidi: display right-to-left languages'
        'hunspell: spell checking'
        'less: terminal paging'
+       'mpg123: Text-to-Speech functionality'
        'mplayer: Text-to-Speech functionality'
        'mpv: Text-to-Speech functionality'
-       'mpg123: Text-to-Speech functionality'
-       'espeak: Text-to-Speech functionality'
        'rlwrap: readline-style editing and history in the interactive mode'
-       'emacs: Emacs interface'
 )
 
-source=("translate-shell-$pkgver.tar.gz::https://github.com/soimort/translate-shell/archive/v$pkgver.tar.gz";)
-# checksums provided by packager, not upstream; take with a grain of salt.
-md5sums=('9c7f554eca69ed6689083a271698e360')
+# They do offer a sha1sum and a PGP signature on their homepage,
+# but they're only for the standalone script, not for the whole package.
+# Easiest thing at this point is to pin to release commits on github,
+# since they do sign their commits.
+source=('git+https://github.com/soimort/translate-shell.git#commit=46e2a14fff1de5bb97d286e78fa2221b3a1eab37?signed')
+md5sums=(SKIP)
+validpgpkeys=(8A9CA65383B671BC995CCEAE07DA00CB78203251)
 
 build() {
-       cd "translate-shell-$pkgver"
+       cd translate-shell
        make
 }
 
 package() {
-       cd "translate-shell-$pkgver"
+       cd translate-shell
        make PREFIX=/usr DESTDIR="$pkgdir" install
-       install -Dm644 LICENSE 
"$pkgdir/usr/share/licenses/translate-shell/LICENSE"
 }

Reply via email to