Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libdecsync-2.2.1
@ 2022-09-13 14:07 08A
  2022-09-13 14:21 ` [PR PATCH] [Updated] " 08A
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: 08A @ 2022-09-13 14:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2518 bytes --]

There is a new pull request by 08A against master on the void-packages repository

https://github.com/08A/void-packages new-package-libdecsync
https://github.com/void-linux/void-packages/pull/39258

New package: libdecsync-2.2.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**


#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

#### Questions

I put my email in the maintainer field. I don't know if it is the expected behavior.

#### Test

main.c:
````c
#include <libdecsync.h>
#include <stddef.h>


int main() {
	Decsync tmp = NULL;
	return 0;
}
````

````sh
$ gcc main.c $(pkg-config --libs decsync)
$ ldd a.out
        linux-vdso.so.1 (0x00007ffca77d6000)
        libdecsync.so.0 => /usr/lib64/libdecsync.so.0 (0x00007f24572b8000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f24570f2000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f24570d8000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f2456f93000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2456f72000)
        libutil.so.1 => /usr/lib/libutil.so.1 (0x00007f2456f6d000)
        libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007f2456f31000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007f2456f26000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2456f20000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2456f06000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f24575f6000)


````
When I have the time I will test with https://github.com/39aldo39/libdecsync-bindings-python3.

#### PS
This PR is heavily inspired by https://github.com/void-linux/void-packages/pull/34731.

All of the credit should go to @eoli3n.
All of the blame should go to me.




A patch file from https://github.com/void-linux/void-packages/pull/39258.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-package-libdecsync-39258.patch --]
[-- Type: text/x-diff, Size: 2161 bytes --]

From 317cf1233473b08afce508548fae72fd8e042a12 Mon Sep 17 00:00:00 2001
From: Alexis Ehret <git@08a.re>
Date: Tue, 13 Sep 2022 13:33:29 +0200
Subject: [PATCH] New package: libdecsync-2.2.1

---
 common/shlibs               |  1 +
 srcpkgs/libdecsync-devel    |  1 +
 srcpkgs/libdecsync/template | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 120000 srcpkgs/libdecsync-devel
 create mode 100644 srcpkgs/libdecsync/template

diff --git a/common/shlibs b/common/shlibs
index ae39d4551d59..9791506fa73e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4161,3 +4161,4 @@ libsyncthingconnector.so.1.2.3 syncthingtray-1.2.3_1
 libglibutil.so.1 libglibutil-1.0.64_1
 libgbinder.so.1 libgbinder-1.1.20_1
 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1
+libdecsync.so.0 libdecsync-2.2.1_1
diff --git a/srcpkgs/libdecsync-devel b/srcpkgs/libdecsync-devel
new file mode 120000
index 000000000000..e72513c6dcf1
--- /dev/null
+++ b/srcpkgs/libdecsync-devel
@@ -0,0 +1 @@
+libdecsync
\ No newline at end of file
diff --git a/srcpkgs/libdecsync/template b/srcpkgs/libdecsync/template
new file mode 100644
index 000000000000..433c47b6a768
--- /dev/null
+++ b/srcpkgs/libdecsync/template
@@ -0,0 +1,32 @@
+# Template file for 'libdecsync'
+pkgname=libdecsync
+version=2.2.1
+revision=1
+archs="x86_64"
+build_style=gnu-makefile
+hostmakedepends="gradle openjdk8 patchelf pkg-config tar"
+makedepends="ncurses-devel"
+short_desc="Multiplatform library for synchronizing using DecSync"
+maintainer="08a <dev@08a.re>"
+license="LGPL-2.0-or-later"
+homepage="https://github.com/39aldo39/libdecsync"
+distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz"
+checksum=3e08b35efed3bafb079aa52a8dcd51217f6602cde64accba1a10cf5c25029d45
+
+export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
+
+pre_install() {
+	patchelf --set-soname libdecsync.so.0 build/bin/linuxX64/releaseShared/libdecsync.so
+}
+
+post_install() {
+	ln -rsf "${DESTDIR}/usr/lib/libdecsync.so" "${DESTDIR}/usr/lib/libdecsync.so.0"
+}
+
+libdecsync-devel_package() {
+	short_desc+=" - development files"
+		pkg_install() {
+			vmove usr/include
+			vmove usr/share/pkgconfig
+		}
+}

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-03-01 13:07 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 14:07 [PR PATCH] New package: libdecsync-2.2.1 08A
2022-09-13 14:21 ` [PR PATCH] [Updated] " 08A
2022-09-13 17:24 ` 08A
2022-09-13 18:22 ` [PR PATCH] [Updated] [WIP] New packages: libdecsync-2.2.1, python3-libdecsync-2.2.1, python3-radicale_storage_decsync-2.1.0 08A
2022-09-13 18:33 ` 08A
2022-09-13 18:58 ` eoli3n
2022-09-13 19:02 ` eoli3n
2022-09-14  7:12 ` [PR PATCH] [Updated] " 08A
2022-09-14 10:33 ` 08A
2022-09-25 10:54 ` 08A
2022-09-26  9:00 ` 08A
2022-09-28  9:01 ` 08A
2022-11-12 11:43 ` 08A
2022-11-12 11:45 ` 08A
2022-11-12 19:32 ` [PR PATCH] [Updated] " 08A
2022-11-15 12:23 ` 08A
2023-02-14  2:02 ` github-actions
2023-03-01  5:18 ` [PR PATCH] [Closed]: " github-actions
2023-03-01 13:06 ` 08A
2023-03-01 13:07 ` 08A

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).