[arch-commits] Commit in argon2/repos (4 files)

Christian Hesse eworm at archlinux.org
Mon Jan 8 14:47:38 UTC 2018


    Date: Monday, January 8, 2018 @ 14:47:37
  Author: eworm
Revision: 314265

archrelease: copy trunk to testing-x86_64

Added:
  argon2/repos/testing-x86_64/
  argon2/repos/testing-x86_64/PKGBUILD
    (from rev 314264, argon2/trunk/PKGBUILD)
  argon2/repos/testing-x86_64/argon2.install
    (from rev 314264, argon2/trunk/argon2.install)
  argon2/repos/testing-x86_64/libargon2.pc
    (from rev 314264, argon2/trunk/libargon2.pc)

----------------+
 PKGBUILD       |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 argon2.install |    6 ++++++
 libargon2.pc   |   11 +++++++++++
 3 files changed, 64 insertions(+)

Copied: argon2/repos/testing-x86_64/PKGBUILD (from rev 314264, argon2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-01-08 14:47:37 UTC (rev 314265)
@@ -0,0 +1,47 @@
+# Maintainer: Baptiste Jonglez <baptiste--aur at jonglez dot org>
+
+pkgname=argon2
+pkgver=20171227
+pkgrel=3
+pkgdesc='A password-hashing function (reference C implementation)'
+arch=('x86_64')
+url='https://github.com/P-H-C/phc-winner-argon2'
+license=('Apache' 'custom:CC0')
+depends=('glibc')
+install=argon2.install
+source=("https://github.com/P-H-C/phc-winner-argon2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        'libargon2.pc')
+sha256sums=('eaea0172c1f4ee4550d1b6c9ce01aab8d1ab66b4207776aa67991eb5872fdcd8'
+            '4189ce6c183319ceaf2c4ec96facd424deeaa9e2819efb7511893bcf3ef5c836')
+
+prepare() {
+  cd "$srcdir/phc-winner-$pkgname-$pkgver"
+
+  # Copy and prepare custom pkg-config file
+  cp "${srcdir}/libargon2.pc" libargon2.pc
+  sed -i -e "s/@UPSTREAM_VER@/${pkgver}/" libargon2.pc
+}
+
+build() {
+  cd "$srcdir/phc-winner-$pkgname-$pkgver"
+
+  make OPTTARGET=none
+}
+
+check() {
+  cd "$srcdir/phc-winner-$pkgname-$pkgver"
+
+  make OPTTARGET=none test
+}
+
+package() {
+  cd "$srcdir/phc-winner-$pkgname-$pkgver"
+
+  make OPTTARGET=none DESTDIR="$pkgdir" install
+
+  install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/argon2/LICENSE"
+
+  install -D -m0644 libargon2.pc "${pkgdir}/usr/lib/pkgconfig/libargon2.pc"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: argon2/repos/testing-x86_64/argon2.install (from rev 314264, argon2/trunk/argon2.install)
===================================================================
--- testing-x86_64/argon2.install	                        (rev 0)
+++ testing-x86_64/argon2.install	2018-01-08 14:47:37 UTC (rev 314265)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+post_upgrade() {
+  # clean up upstream soname mess
+  rm -f usr/lib/libargon2.so.0
+}

Copied: argon2/repos/testing-x86_64/libargon2.pc (from rev 314264, argon2/trunk/libargon2.pc)
===================================================================
--- testing-x86_64/libargon2.pc	                        (rev 0)
+++ testing-x86_64/libargon2.pc	2018-01-08 14:47:37 UTC (rev 314265)
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: libargon2
+Description: Development libraries for libargon2
+Version: @UPSTREAM_VER@
+Libs: -L${libdir} -largon2 -lrt -ldl
+Cflags:
+URL: https://github.com/P-H-C/phc-winner-argon2



More information about the arch-commits mailing list