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

Antonio Rojas arojas at archlinux.org
Tue Apr 30 19:31:46 UTC 2019


    Date: Tuesday, April 30, 2019 @ 19:31:45
  Author: arojas
Revision: 457057

archrelease: copy trunk to community-staging-x86_64

Added:
  crypto++/repos/community-staging-x86_64/
  crypto++/repos/community-staging-x86_64/PKGBUILD
    (from rev 457056, crypto++/trunk/PKGBUILD)
  crypto++/repos/community-staging-x86_64/crypto++.install
    (from rev 457056, crypto++/trunk/crypto++.install)
  crypto++/repos/community-staging-x86_64/libcrypto++.pc
    (from rev 457056, crypto++/trunk/libcrypto++.pc)

------------------+
 PKGBUILD         |   54 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 crypto++.install |    4 +++
 libcrypto++.pc   |   11 ++++++++++
 3 files changed, 69 insertions(+)

Copied: crypto++/repos/community-staging-x86_64/PKGBUILD (from rev 457056, crypto++/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-04-30 19:31:45 UTC (rev 457057)
@@ -0,0 +1,54 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Kritoke <kritoke at gamebox.net>
+# Contributor: jlvsimoes <jlvsimoes at oninet.pt>
+
+pkgname=crypto++
+pkgver=8.2.0
+_srcver=${pkgver//./}
+pkgrel=1
+pkgdesc="A free C++ class library of cryptographic schemes"
+arch=('x86_64')
+url="https://www.cryptopp.com/"
+license=('custom')
+depends=('gcc-libs')
+makedepends=('unzip')
+# Fix https://bugs.archlinux.org/task/56689
+install="crypto++.install"
+source=("https://www.cryptopp.com/cryptopp${_srcver}.zip"{,.sig}
+        'libcrypto++.pc')
+# Checksums from https://www.cryptopp.com/release600.html
+sha1sums=('b042d2f0c93410abdec7c12bcd92787d019f8da1'
+          'SKIP'
+          'ef530175d27101dcb23a3f92d3c80a529f1d7b02')
+sha256sums=('03f0e2242e11b9d19b28d0ec5a3fa8ed5cc7b27640e6bed365744f593e858058'
+            'SKIP'
+            '8722862336f9fe0181734619c197bf4248f0e07b93bdcd693709f57b2f6aa9e6')
+sha512sums=('753513a4ec8dd0fff2f551853ce6bd265d82219c28b033565b565b5e567fbee17adb419f4cde58a97e62b7d6533f4099aa4996cd0ba4775c6a2e7ae63a879da5'
+            'SKIP'
+            '3be1569e81af1f9b35e944faae3e9962ee2e492fb38e94fe7f847b85da033a79bbfeff193e0edb2d69f2d893f6e8279be144b9395653db67374300f7feb23276')
+validpgpkeys=('B8CC19802062211A508B2F5CCE0586AF1F8E37BD') # Jeffrey Walton (Crypto++ Release) <noloader at gmail.com>
+
+build() {
+  CXXFLAGS+=" -DNDEBUG -fPIC" make dynamic cryptest.exe
+}
+
+check() {
+  make test
+}
+
+package() {
+  make install DESTDIR="$pkgdir" PREFIX="/usr"
+  # Install pkgconfig file
+  install -d "${pkgdir}/usr/lib/pkgconfig"
+  install -m644 "${srcdir}/libcrypto++.pc" "${pkgdir}/usr/lib/pkgconfig/libcrypto++.pc"
+  # Remove cryptest.exe and test files, only needed for check() and bloats the package
+  # because cryptest.exe is linked statically.
+  rm "${pkgdir}/usr/bin/cryptest.exe"
+  rmdir "${pkgdir}/usr/bin/"
+  rm -r "${pkgdir}/usr/share/cryptopp/"
+  # Install license
+  install -D -m644 License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: crypto++/repos/community-staging-x86_64/crypto++.install (from rev 457056, crypto++/trunk/crypto++.install)
===================================================================
--- community-staging-x86_64/crypto++.install	                        (rev 0)
+++ community-staging-x86_64/crypto++.install	2019-04-30 19:31:45 UTC (rev 457057)
@@ -0,0 +1,4 @@
+pre_upgrade() {
+	# Up to crypto++ 5.6.5-3, libcryptopp.so.5.6 was not tracked by pacman (symlinked at install time)
+	[ -L /usr/lib/libcryptopp.so.5.6 ] && unlink /usr/lib/libcryptopp.so.5.6 || true
+}

Copied: crypto++/repos/community-staging-x86_64/libcrypto++.pc (from rev 457056, crypto++/trunk/libcrypto++.pc)
===================================================================
--- community-staging-x86_64/libcrypto++.pc	                        (rev 0)
+++ community-staging-x86_64/libcrypto++.pc	2019-04-30 19:31:45 UTC (rev 457057)
@@ -0,0 +1,11 @@
+# Written by Alexander Rødseth <rodseth at gmail.com>
+
+prefix=/usr
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: libcrypto++-7.0.0
+Description: Class library of cryptographic schemes
+Version: 7.0.0
+Libs: -L${libdir} -lcryptopp
+Cflags: -I${includedir} 



More information about the arch-commits mailing list