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

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Mar 6 15:56:00 UTC 2022


    Date: Sunday, March 6, 2022 @ 15:56:00
  Author: foutrelis
Revision: 1142616

archrelease: copy trunk to community-staging-x86_64

Added:
  crypto++/repos/community-staging-x86_64/
  crypto++/repos/community-staging-x86_64/PKGBUILD
    (from rev 1142615, crypto++/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: crypto++/repos/community-staging-x86_64/PKGBUILD (from rev 1142615, crypto++/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-03-06 15:56:00 UTC (rev 1142616)
@@ -0,0 +1,48 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: 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.6.0
+pkgrel=2
+pkgdesc='A free C++ class library of cryptographic schemes'
+arch=(x86_64)
+url=https://www.cryptopp.com/
+license=(custom)
+depends=(gcc-libs)
+makedepends=(
+  git
+  unzip
+)
+_tag=69bf6b53052b59ccb57ce068ce741988ae087317
+source=(git+https://github.com/weidai11/cryptopp.git#tag=${_tag})
+b2sums=(SKIP)
+validpgpkeys=(B8CC19802062211A508B2F5CCE0586AF1F8E37BD) # Jeffrey Walton <noloader at gmail.com>
+
+pkgver() {
+  cd cryptopp
+  git describe --tags | sed 's/^CRYPTOPP_//; s/_/./g'
+}
+
+build() {
+  export CXXFLAGS="$CXXFLAGS -DNDEBUG -fPIC"
+  make PREFIX=/usr -C cryptopp dynamic cryptest.exe libcryptopp.pc
+}
+
+check() {
+  make PREFIX=/usr -C cryptopp test
+}
+
+package() {
+  make DESTDIR="${pkgdir}" PREFIX=/usr -C cryptopp install
+  install -Dm 644 cryptopp/License.txt -t "${pkgdir}"/usr/share/licenses/crypto++/
+  # Remove cryptest.exe and test files, only needed for check() and bloats the package
+  # because cryptest.exe is linked statically.
+  rm -rf "${pkgdir}"/usr/{bin,share/cryptopp}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list