summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigoalma2019-04-18 04:06:26 +0100
committerluigoalma2019-04-18 04:06:26 +0100
commit0d505457ea473d6fc6a92a427a8a7003cf658e67 (patch)
treeebf36618543cdbece8cb6856c6dc555c607b6eea
parentf3026434f4f251ae2d9afd344bb1f655ee33f30b (diff)
downloadaur-0d505457ea473d6fc6a92a427a8a7003cf658e67.tar.gz
Add signature check
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b293526b914..ffff91cef80 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -11,7 +11,10 @@ pkgbase = ninfs
noextract = ninfs-1.4-src.zip
options = !strip
source = ninfs-1.4-src.zip::https://github.com/ihaveamac/ninfs/releases/download/v1.4/ninfs-1.4-src.zip
+ source = ninfs-1.4-src.zip.asc::https://github.com/ihaveamac/ninfs/releases/download/v1.4/ninfs-1.4-src.zip.asc
+ validpgpkeys = E6284E1064CC2199B304B68990725113CA578EAA
sha256sums = 5fdbb1850abea4b9646577dba764832aaa3bf3f0b12b686ed343e5d42a32847d
+ sha256sums = SKIP
pkgname = ninfs
depends = python>=3.6.1
diff --git a/PKGBUILD b/PKGBUILD
index 9623702dc79..d06820b17fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,8 +8,11 @@ license=(MIT)
url='https://github.com/ihaveamac/ninfs'
makedepends=('python-setuptools' 'python-pycryptodomex' 'unzip')
options=(!strip)
-source=("${pkgbase}-${pkgver}-src.zip::${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}-src.zip")
-sha256sums=('5fdbb1850abea4b9646577dba764832aaa3bf3f0b12b686ed343e5d42a32847d')
+_source=("${pkgbase}-${pkgver}-src.zip"{,.asc}"::${url}/releases/download/v${pkgver}/${pkgbase}-${pkgver}-src.zip"{.asc,''})
+source=(${_source[@]:1:2})
+sha256sums=('5fdbb1850abea4b9646577dba764832aaa3bf3f0b12b686ed343e5d42a32847d'
+ 'SKIP')
+validpgpkeys=('E6284E1064CC2199B304B68990725113CA578EAA')
noextract=("${pkgbase}-${pkgver}-src.zip")
build() {