From 965b905ebc2e3e87088833f3befa735fb04266a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Koutensk=C3=BD?= Date: Thu, 16 Mar 2017 22:25:43 +0100 Subject: [PATCH] New package: glyr-1.0.10 Closes 5994 by manual merge --- common/shlibs | 1 + srcpkgs/glyr-devel | 1 + srcpkgs/glyr/patches/musl-execinfo.patch | 29 ++++++++++++++++++++++++ srcpkgs/glyr/template | 23 +++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 120000 srcpkgs/glyr-devel create mode 100644 srcpkgs/glyr/patches/musl-execinfo.patch create mode 100644 srcpkgs/glyr/template diff --git a/common/shlibs b/common/shlibs index 978f9bf186..626c305040 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2822,3 +2822,4 @@ libserialport.so.0 libserialport-0.1.1_1 libsigrok.so.3 libsigrok-0.4.0_1 libsigrokcxx.so.3 libsigrok-0.4.0_1 libsigrokdecode.so.3 libsigrokdecode-0.4.1_1 +libglyr.so.1 glyr-1.0.8_1 diff --git a/srcpkgs/glyr-devel b/srcpkgs/glyr-devel new file mode 120000 index 0000000000..906519c094 --- /dev/null +++ b/srcpkgs/glyr-devel @@ -0,0 +1 @@ +glyr \ No newline at end of file diff --git a/srcpkgs/glyr/patches/musl-execinfo.patch b/srcpkgs/glyr/patches/musl-execinfo.patch new file mode 100644 index 0000000000..67f6267456 --- /dev/null +++ b/srcpkgs/glyr/patches/musl-execinfo.patch @@ -0,0 +1,29 @@ +--- src/glyrc/glyrc.c.original ++++ src/glyrc/glyrc.c +@@ -24,7 +24,7 @@ + #include + #include + +-#ifdef __linux__ ++#ifdef __GLIBC__ + /* Backtrace*/ + #include + #endif +@@ -102,7 +102,7 @@ + + //////////////////////////////////////////////////////////////// + +-#ifdef __linux__ ++#ifdef __GLIBC__ + #define STACK_FRAME_SIZE 20 + + /* Obtain a backtrace and print it to stdout. */ +@@ -141,7 +141,7 @@ + cvprint (DEFAULT," It would be just natural to blame us now, so just visit \n"); + cvprint (DEFAULT," and throw hard words like 'backtrace', 'bug report' or even the '$(command I issued' at them).\n"); + cvprint (DEFAULT," The libglyr developers will try to fix it as soon as possible so please stop pulling their hair.\n"); +-#ifdef __linux__ ++#ifdef __GLIBC__ + cvprint (DEFAULT,"\nA list of the last called functions follows, please add this to your report:\n"); + print_trace(); + #endif diff --git a/srcpkgs/glyr/template b/srcpkgs/glyr/template new file mode 100644 index 0000000000..eb59ece2e9 --- /dev/null +++ b/srcpkgs/glyr/template @@ -0,0 +1,23 @@ +# Template file for 'glyr' +pkgname=glyr +version="1.0.10" +revision=1 +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libcurl-devel glib-devel sqlite-devel" +short_desc="A music metadata searchengine utility and library" +maintainer="Michal Koutenský " +license="LGPL-3" +homepage="https://github.com/sahib/glyr" +distfiles="https://github.com/sahib/glyr/archive/${version}.tar.gz" +checksum=77e8da60221c8d27612e4a36482069f26f8ed74a1b2768ebc373c8144ca806e8 + +glyr-devel_package() { + depends="glyr>=${version}_${revision}" + short_desc="A music metadata searchengine utility and library - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}