New package: olm-2.2.2
This commit is contained in:
parent
95668e2beb
commit
d1abc701c7
5 changed files with 80 additions and 0 deletions
1
srcpkgs/olm-devel
Symbolic link
1
srcpkgs/olm-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
olm
|
1
srcpkgs/olm-python
Symbolic link
1
srcpkgs/olm-python
Symbolic link
|
@ -0,0 +1 @@
|
|||
olm
|
1
srcpkgs/olm-python3
Symbolic link
1
srcpkgs/olm-python3
Symbolic link
|
@ -0,0 +1 @@
|
|||
olm
|
19
srcpkgs/olm/patches/python-find-olm.patch
Normal file
19
srcpkgs/olm/patches/python-find-olm.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- python/olm/_base.py
|
||||
+++ python/olm/_base.py
|
||||
@@ -1,14 +1,13 @@
|
||||
import os.path
|
||||
|
||||
from ctypes import *
|
||||
+from ctypes import util
|
||||
|
||||
def read_random(n):
|
||||
with open("/dev/urandom", "rb") as f:
|
||||
return f.read(n)
|
||||
|
||||
-lib = cdll.LoadLibrary(os.path.join(
|
||||
- os.path.dirname(__file__), "..", "..", "build", "libolm.so.2")
|
||||
-)
|
||||
+lib = cdll.LoadLibrary(util.find_library("olm"))
|
||||
|
||||
lib.olm_error.argtypes = []
|
||||
lib.olm_error.restypes = c_size_t
|
58
srcpkgs/olm/template
Normal file
58
srcpkgs/olm/template
Normal file
|
@ -0,0 +1,58 @@
|
|||
# Template file for 'olm'
|
||||
pkgname=olm
|
||||
version=2.2.2
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_check_target=test
|
||||
hostmakedepends="python-devel python3-devel"
|
||||
makedepends="python-devel python3-devel"
|
||||
short_desc="An implementation of the Double Ratchet cryptographic ratchet"
|
||||
maintainer="Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://git.matrix.org/git/olm/about/"
|
||||
distfiles="https://git.matrix.org/git/olm/snapshot/${pkgname}-${version}.tar.gz"
|
||||
checksum=0c00127e6c4fcb4ec2cb3f78805a9218551b878f75441a1bc282b94c9fdd7b9a
|
||||
|
||||
post_configure() {
|
||||
# -O0 prevents _FORTIFY_SOURCE working
|
||||
for _f in $(find ${wrksrc} -name Makefile); do
|
||||
sed -i $_f -e "s; -O0;;"
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR=${DESTDIR} PREFIX=/usr install
|
||||
for pysl in $py2_sitelib $py3_sitelib; do
|
||||
mkdir -p ${DESTDIR}${pysl}
|
||||
cp -r ${wrksrc}/python/olm ${DESTDIR}${pysl}
|
||||
done
|
||||
}
|
||||
|
||||
olm-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/*.so
|
||||
}
|
||||
}
|
||||
|
||||
olm-python_package() {
|
||||
noarch=yes
|
||||
short_desc+=" - python bindings"
|
||||
depends="${sourcepkg}>=${version}_${revision} python"
|
||||
pycompile_module=olm
|
||||
pkg_install() {
|
||||
vmove ${py2_sitelib}
|
||||
}
|
||||
}
|
||||
|
||||
olm-python3_package() {
|
||||
noarch=yes
|
||||
short_desc+=" - python3 bindings"
|
||||
depends="${sourcepkg}>=${version}_${revision} python3"
|
||||
pycompile_module=olm
|
||||
pkg_install() {
|
||||
vmove ${py3_sitelib}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue