Date: Saturday, April 29, 2023 @ 15:16:41
  Author: alucryd
Revision: 1454604

archrelease: copy trunk to community-staging-x86_64

Added:
  mbedtls2/repos/
  mbedtls2/repos/community-staging-x86_64/
  mbedtls2/repos/community-staging-x86_64/PKGBUILD
    (from rev 1454603, mbedtls2/trunk/PKGBUILD)

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

Copied: mbedtls2/repos/community-staging-x86_64/PKGBUILD (from rev 1454603, 
mbedtls2/trunk/PKGBUILD)
===================================================================
--- repos/community-staging-x86_64/PKGBUILD                             (rev 0)
+++ repos/community-staging-x86_64/PKGBUILD     2023-04-29 15:16:41 UTC (rev 
1454604)
@@ -0,0 +1,60 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+# Contributor: Mihai Militaru <mihai militaru at xmpp dot ro>
+# Contributor: carstene1ns <arch carsten-teibes.de>
+
+pkgname=mbedtls2
+pkgver=2.28.3
+pkgrel=1
+pkgdesc='An open source, portable, easy to use, readable and flexible TLS 
library'
+arch=(x86_64)
+url=https://tls.mbed.org
+license=(Apache)
+depends=(glibc)
+checkdepends=(python)
+makedepends=(
+  cmake
+  git
+  ninja
+)
+provides=(
+  libmbedcrypto.so
+  libmbedtls.so
+  libmbedx509.so
+)
+options=(staticlibs)
+_tag=981743de6fcdbe672e482b6fd724d31d0a0d2476
+source=(git+https://github.com/ARMmbed/mbedtls.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+  cd mbedtls
+  git describe --tags | sed 's/^v//; s/^mbedtls-//'
+}
+
+build() {
+  export CFLAGS+=' -ffat-lto-objects'
+  cmake -S mbedtls -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DENABLE_PROGRAMS=OFF \
+    -DMBEDTLS_FATAL_WARNINGS=OFF \
+    -DUSE_SHARED_MBEDTLS_LIBRARY=ON \
+    -DUSE_STATIC_MBEDTLS_LIBRARY=OFF \
+    -Wno-dev
+  cmake --build build
+}
+
+check() {
+  LD_LIBRARY_PATH="${srcdir}"/build/library ctest --test-dir build
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --install build
+  rm -rf "${pkgdir}"/usr/lib/{cmake,lib*.so}
+  install -dm 755 "${pkgdir}"/usr/include/mbedtls2
+  mv "${pkgdir}"/usr/include/{mbedtls,psa} "${pkgdir}"/usr/include/mbedtls2/
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to