diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2020-04-17 14:20:33 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-04-17 14:44:47 +0200 |
commit | 0e827faaae3f33cbf22da4908c951e0621e5b7ec (patch) | |
tree | bb9c158fe3fab318cbbae871b831ae3a51260308 /testing | |
parent | a2778127c999132822a403c920155362c8059ddb (diff) | |
download | aports-0e827faaae3f33cbf22da4908c951e0621e5b7ec.tar.bz2 aports-0e827faaae3f33cbf22da4908c951e0621e5b7ec.tar.xz |
testing/openssld: new aport
https://github.com/D-Programming-Deimos/openssl
D version of the C headers for openssl
Diffstat (limited to 'testing')
-rw-r--r-- | testing/openssld/58.patch | 36 | ||||
-rw-r--r-- | testing/openssld/APKBUILD | 33 |
2 files changed, 69 insertions, 0 deletions
diff --git a/testing/openssld/58.patch b/testing/openssld/58.patch new file mode 100644 index 0000000000..169902487e --- /dev/null +++ b/testing/openssld/58.patch @@ -0,0 +1,36 @@ +From 31c3a3b930cc493bae1bdc7505665b187a388038 Mon Sep 17 00:00:00 2001 +From: Rasmus Thomsen <oss@cogitri.dev> +Date: Mon, 9 Mar 2020 19:23:36 +0100 +Subject: [PATCH] Add support for building with meson + +This makes it easier for distros to install this and provides a pkgconfig +file for other projects which want to use this together with +meson +--- + meson.build | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + create mode 100644 meson.build + +diff --git a/meson.build b/meson.build +new file mode 100644 +index 0000000..422c562 +--- /dev/null ++++ b/meson.build +@@ -0,0 +1,17 @@ ++project('openssld', ['d'], version: '1.1.0h') ++ ++openssl_dep = dependency('openssl') ++ ++install_subdir( ++ 'deimos', ++ install_dir: join_paths(get_option('includedir'), 'd', 'openssld'), ++) ++ ++pkgc = import ('pkgconfig') ++ ++pkgc.generate( ++ name: 'openssld', ++ subdirs: 'd/openssld', ++ requires: openssl_dep, ++ description: 'OpenSSL D interface', ++) diff --git a/testing/openssld/APKBUILD b/testing/openssld/APKBUILD new file mode 100644 index 0000000000..a40aa959f7 --- /dev/null +++ b/testing/openssld/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +pkgname=openssld +pkgver=2.0.1 +_opensslver=1.1.0h +pkgrel=0 +pkgdesc="D version of the C headers for openssl" +url="https://github.com/D-Programming-Deimos/openssl" +arch="noarch !ppc64le" # gdc +license="OpenSSL" +makedepends="meson openssl-dev gcc-gdc" +subpackages="$pkgname-dev" +source="https://github.com/D-Programming-Deimos/openssl/archive/v${pkgver}+$_opensslver/openssl-d-${pkgver}+$_opensslver.tar.gz + 58.patch" +builddir="$srcdir/openssl-$pkgver-$_opensslver" + +build() { + meson \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --buildtype=plain \ + . output + ninja -C output +} + +package() { + DESTDIR="$pkgdir" ninja -C output install +} + +sha512sums="2aefaf48df7bb27fe21f401ebeeb6cf9ce46dcdf31811bcaba4729896af077a613d8ed920a708cc96d4dfaa11cd72a8f15440c6f452d6b594ba04b1baf4489bd openssl-d-2.0.1+1.1.0h.tar.gz +289f65eac29ea514ee42d6aa2b2fe98c8a2c5e0a3da7843c448fe657e657ba57f79b9f303538f02c60858e1370c62294c745324a343ef73ac259114c055478cd 58.patch" |