From 4a9365ce465564d30f68cc620c2dc7fd1e965cd9 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Thu, 2 Sep 2021 22:39:15 +0200 Subject: [PATCH 1/2] New package: m4ri-20200125 --- common/shlibs | 1 + srcpkgs/m4ri-devel | 1 + srcpkgs/m4ri/template | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 120000 srcpkgs/m4ri-devel create mode 100644 srcpkgs/m4ri/template diff --git a/common/shlibs b/common/shlibs index 87c27c459aad..3591316dd128 100644 --- a/common/shlibs +++ b/common/shlibs @@ -22,6 +22,7 @@ libm.so.6 glibc-2.32_1 libpthread.so.0 glibc-2.32_1 librt.so.1 glibc-2.32_1 libdl.so.2 glibc-2.32_1 +libm4ri-0.0.20200125.so m4ri-20200125_1 ld-linux-x86-64.so.2 glibc-2.32_1 x86_64 ld-linux.so.2 glibc-2.32_1 i686 ld-linux.so.3 glibc-2.32_1 armv5tel diff --git a/srcpkgs/m4ri-devel b/srcpkgs/m4ri-devel new file mode 120000 index 000000000000..a269c97b0d75 --- /dev/null +++ b/srcpkgs/m4ri-devel @@ -0,0 +1 @@ +m4ri \ No newline at end of file diff --git a/srcpkgs/m4ri/template b/srcpkgs/m4ri/template new file mode 100644 index 000000000000..c38883e56c41 --- /dev/null +++ b/srcpkgs/m4ri/template @@ -0,0 +1,32 @@ +# Template file for 'm4ri' +pkgname=m4ri +version=20200125 +revision=1 +build_style=gnu-configure +configure_args="--enable-openmp" +hostmakedepends=pkg-config +makedepends=libpng-devel +short_desc="Library for fast arithmetic with dense matrices over GF(2)" +maintainer="Eloi Torrents " +license="GPL-2.0-or-later" +homepage="https://bitbucket.org/malb/m4ri" +distfiles="https://bitbucket.org/malb/m4ri/downloads/${pkgname}-${version}.tar.gz" +checksum=0dfb34aed351882a0f2281535ea6f81c690a5efeb14edab131d9ba0dffe44863 + +build_options="native_build" + +if [ -z "$build_option_native_build" ]; then + # this disables sse3 + configure_args="--disable-sse2" +fi + +m4ri-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove usr/lib/libm4ri.so + vmove usr/lib/pkgconfig + } +} From c81988303a5ec849a5deb2950f59b65b9a1b8ba7 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Thu, 2 Sep 2021 23:18:10 +0200 Subject: [PATCH 2/2] New package: m4rie-20200125 --- common/shlibs | 1 + srcpkgs/m4rie-devel | 1 + srcpkgs/m4rie/template | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 120000 srcpkgs/m4rie-devel create mode 100644 srcpkgs/m4rie/template diff --git a/common/shlibs b/common/shlibs index 3591316dd128..0b07096fcee5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -23,6 +23,7 @@ libpthread.so.0 glibc-2.32_1 librt.so.1 glibc-2.32_1 libdl.so.2 glibc-2.32_1 libm4ri-0.0.20200125.so m4ri-20200125_1 +libm4rie-0.0.20200125.so m4rie-20200125_1 ld-linux-x86-64.so.2 glibc-2.32_1 x86_64 ld-linux.so.2 glibc-2.32_1 i686 ld-linux.so.3 glibc-2.32_1 armv5tel diff --git a/srcpkgs/m4rie-devel b/srcpkgs/m4rie-devel new file mode 120000 index 000000000000..664b7673e9ca --- /dev/null +++ b/srcpkgs/m4rie-devel @@ -0,0 +1 @@ +m4rie \ No newline at end of file diff --git a/srcpkgs/m4rie/template b/srcpkgs/m4rie/template new file mode 100644 index 000000000000..541095c1e866 --- /dev/null +++ b/srcpkgs/m4rie/template @@ -0,0 +1,23 @@ +# Template file for 'm4rie' +pkgname=m4rie +version=20200125 +revision=1 +build_style=gnu-configure +makedepends="m4ri-devel" +short_desc="Library for fast arithmetic with dense matrices over GF(2^e)" +maintainer="Eloi Torrents " +license="GPL-2.0-or-later" +homepage="https://bitbucket.org/malb/m4rie/wiki/Home" +distfiles="https://bitbucket.org/malb/m4rie/downloads/m4rie-${version}.tar.gz" +checksum=7f3107f7cd10f6c22d9663d9536e1af2f551e10183601852a60d760918caf58d + +m4rie-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove usr/lib/libm4rie.so + vmove usr/lib/pkgconfig + } +}