summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteffenfritz2017-02-22 10:28:16 +0100
committersteffenfritz2017-02-22 10:28:16 +0100
commit5ad828fdee596dd01958a9007a959a8f31e3fa8b (patch)
tree3ec92a197219b76c42661ada95fe70905bfd6de5
parentee25398a43fce2b8794a7782ad38ba887da77372 (diff)
downloadaur-5ad828fdee596dd01958a9007a959a8f31e3fa8b.tar.gz
improved PKGBUILD after review
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD19
2 files changed, 14 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index af1de6cd9b2..c571cea93ed 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,14 +6,14 @@ pkgbase = pacaudit
arch = i686
arch = x86_64
license = GPL3
- makedepends = go>=1.6
+ makedepends = go
depends = glibc
options = !strip
- source = https://github.com/steffenfritz/pacaudit/archive/master.zip
- source = https://fritz.wtf/master.zip.asc
+ source = https://github.com/steffenfritz/pacaudit/archive/v0.1.tar.gz
+ source = https://fritz.wtf/v0.1.tar.gz.asc
validpgpkeys = 7328F6E376924E4EE266381D3D9C808E038A615C
- sha256sums = bd6aa2105e34b602ba82a17d0ccff51e8bb65132684b4f8e3c6ab055f4a3ea01
- sha256sums = 78823ee5ea2b87f8f5548f44e8fec85384ab142cb69814ea653beb60cfcb24d3
+ sha256sums = c1e4725db43542d240c25a47a55a2f4586a0a49da12e7956368d40e9454f3816
+ sha256sums = f2911b7c218bfc4c0f4509983f887fc851bf21cbe0f7ffdf6a9f1061d66559cf
pkgname = pacaudit
diff --git a/PKGBUILD b/PKGBUILD
index 688104c2878..3310b922a0f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,21 +7,20 @@ arch=('i686' 'x86_64')
url="https://github.com/steffenfritz/pacaudit"
license=('GPL3')
depends=('glibc')
-makedepends=('go>=1.6')
+makedepends=('go')
options=('!strip')
-source=("https://github.com/steffenfritz/pacaudit/archive/master.zip" "https://fritz.wtf/master.zip.asc")
+
+validpgpkeys=('7328F6E376924E4EE266381D3D9C808E038A615C')
+sha256sums=('c1e4725db43542d240c25a47a55a2f4586a0a49da12e7956368d40e9454f3816'
+'f2911b7c218bfc4c0f4509983f887fc851bf21cbe0f7ffdf6a9f1061d66559cf')
+
+source=("https://github.com/steffenfritz/pacaudit/archive/v$pkgver.tar.gz" "https://fritz.wtf/v$pkgver.tar.gz.asc")
build() {
- cd pacaudit-master
+ cd pacaudit-$pkgver
go build -o pacaudit -ldflags "-s -w"
}
package() {
- mkdir -p $pkgdir/usr/bin
- cd pacaudit-master
- install -m744 $srcdir/pacaudit-master/pacaudit $pkgdir/usr/bin/pacaudit
-
+ install -Dm755 "$srcdir"/pacaudit-$pkgver/pacaudit "$pkgdir"/usr/bin/pacaudit
}
-validpgpkeys=('7328F6E376924E4EE266381D3D9C808E038A615C')
-sha256sums=('bd6aa2105e34b602ba82a17d0ccff51e8bb65132684b4f8e3c6ab055f4a3ea01'
-'78823ee5ea2b87f8f5548f44e8fec85384ab142cb69814ea653beb60cfcb24d3')