From 3d180fa1b76c23ea5ef240e6b9016d5a2849e332 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Aug 2015 12:07:34 +0200 Subject: dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dist/archlinux/stable/.gitignore | 6 ++++++ dist/archlinux/stable/PKGBUILD | 26 ++++++++++++++++++++++++++ dist/archlinux/stable/sha3sum.install | 20 ++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dist/archlinux/stable/.gitignore create mode 100644 dist/archlinux/stable/PKGBUILD create mode 100644 dist/archlinux/stable/sha3sum.install 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 +} + -- cgit v1.2.3-70-g09d2