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

Bruno Pagani archange at archlinux.org
Fri Apr 10 21:31:14 UTC 2020


    Date: Friday, April 10, 2020 @ 21:31:13
  Author: archange
Revision: 613184

archrelease: copy trunk to community-staging-x86_64

Added:
  libressl/repos/community-staging-x86_64/
  libressl/repos/community-staging-x86_64/PKGBUILD
    (from rev 613183, libressl/trunk/PKGBUILD)

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

Copied: libressl/repos/community-staging-x86_64/PKGBUILD (from rev 613183, libressl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-10 21:31:13 UTC (rev 613184)
@@ -0,0 +1,53 @@
+# Maintainer: Levente Polyak <anthraxx at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Maarten de Vries <maarten at de-vri.es>
+# Contributor: Reventlov <contact at volcanis.me>
+# Contributor: kpcyrd <git at rxv.cc>
+
+pkgname=libressl
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="Free version of the TLS/crypto stack forked from OpenSSL"
+arch=(x86_64)
+url="https://www.libressl.org/"
+license=(ISC custom:OpenSSL)
+depends=(glibc)
+optdepends=(ca-certificates)
+backup=(etc/libressl/openssl.cnf)
+source=(https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${pkgver}.tar.gz{,.asc})
+sha256sums=('f91aad0c8fb9cbc67c910ad6dcffb401a819b4fd122007ea7f978638db044cf6' 'SKIP')
+validpgpkeys=(A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5) # Brent Cook <bcook at openbsd.org>
+
+prepare() {
+    cd ${pkgname}-${pkgver}
+    autoreconf -vfi
+}
+
+build() {
+    cd ${pkgname}-${pkgver}
+    ./configure \
+        --prefix=/usr \
+        --with-openssldir=/etc/libressl \
+        --libdir=/usr/lib/libressl \
+        --includedir=/usr/include/libressl \
+        --program-prefix "libressl-"
+    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+    make
+}
+
+check() {
+    cd ${pkgname}-${pkgver}
+    make check
+}
+
+package() {
+    cd ${pkgname}-${pkgver}
+    make DESTDIR="${pkgdir}" install
+    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+    # Remove symlink man pages, that actually points to OpenSSL ones since the prefix is not accounted for
+    for manlink in $(find -L "${pkgdir}"/usr/share/man/man3/ -type l) ;
+    do
+        rm "${manlink}" ;
+    done
+}



More information about the arch-commits mailing list