aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/archlinux/stable/.gitignore6
-rw-r--r--dist/archlinux/stable/PKGBUILD26
-rw-r--r--dist/archlinux/stable/sha3sum.install20
3 files changed, 52 insertions, 0 deletions
diff --git a/dist/archlinux/stable/.gitignore b/dist/archlinux/stable/.gitignore
new file mode 100644
index 0000000..9ad619b
--- /dev/null
+++ b/dist/archlinux/stable/.gitignore
@@ -0,0 +1,6 @@
+*
+!/.git*
+*~
+!/PKGBUILD
+!/sha3sum.install
+
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
new file mode 100644
index 0000000..b6cf1b5
--- /dev/null
+++ b/dist/archlinux/stable/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=sha3sum
+pkgver=1.0
+pkgrel=1
+pkgdesc="Keccak-family checksum calculator, including SHA-3"
+arch=(i686 x86_64)
+url="https://github.com/maandree/sha3sum"
+license=('AGPL3')
+depends=(libkeccak argparser glibc)
+makedepends=(libkeccak argparser glibc auto-auto-complete texman sed texinfo)
+install=sha3sum.install
+source=($url/archive/$pkgver.tar.gz)
+sha256sums=(d4f4729f6065c489d6ed95e1c997e1bda4308ba37ebb3eb8a666fef17d4fc22f)
+
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=/usr command shell info man
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir" install-base install-shell install-info install-man
+}
+
diff --git a/dist/archlinux/stable/sha3sum.install b/dist/archlinux/stable/sha3sum.install
new file mode 100644
index 0000000..3ab5d32
--- /dev/null
+++ b/dist/archlinux/stable/sha3sum.install
@@ -0,0 +1,20 @@
+_file="sha3sum"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+