summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClarence2020-12-16 13:59:49 +0800
committerClarence2020-12-16 13:59:49 +0800
commit59d981b03343a084f6ec976954c782ccfc913b15 (patch)
treef691ddf507e3878fd5733a7df31a783b679d1844
downloadaur-59d981b03343a084f6ec976954c782ccfc913b15.tar.gz
initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore19
-rw-r--r--0001-Compatible-with-the-new-version-of-libckeck.patch87
-rw-r--r--PKGBUILD33
4 files changed, 158 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0bf938bce31
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = sofia-sip-fs
+ pkgdesc = An open-source SIP User-Agent library (FreeSWITCH version)
+ pkgver = 1.13.2
+ pkgrel = 1
+ url = https://github.com/freeswitch/sofia-sip
+ arch = x86_64
+ license = LGPL
+ depends = glib2
+ depends = openssl
+ depends = gawk
+ provides = sofia-sip
+ conflicts = sofia-sip
+ source = sofia-sip-fs-1.13.2.tar.xz::https://github.com/freeswitch/sofia-sip/archive/v1.13.2.tar.gz
+ source = 0001-Compatible-with-the-new-version-of-libckeck.patch
+ sha256sums = b9eca9688ce4b28e062daf0933c3bf661fb607e7afafa71bda3e8f07eb88df44
+ sha256sums = 7e52ec8ee1340042982c2d7b5612e37b7140daea5e5b67e2bd392b2c367913de
+
+pkgname = sofia-sip-fs
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..509d8709b79
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,19 @@
+# Created by https://www.toptal.com/developers/gitignore/api/archlinuxpackages
+# Edit at https://www.toptal.com/developers/gitignore?templates=archlinuxpackages
+
+### ArchLinuxPackages ###
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+
+# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages
diff --git a/0001-Compatible-with-the-new-version-of-libckeck.patch b/0001-Compatible-with-the-new-version-of-libckeck.patch
new file mode 100644
index 00000000000..2e095e66d62
--- /dev/null
+++ b/0001-Compatible-with-the-new-version-of-libckeck.patch
@@ -0,0 +1,87 @@
+From d568475eb7291bc72f585a116319b05d80b818e1 Mon Sep 17 00:00:00 2001
+From: Clarence <xjh.azzbcc@gmail.com>
+Date: Fri, 11 Dec 2020 18:23:24 +0800
+Subject: [PATCH] Compatible with the new version of libckeck.
+
+---
+ s2check/s2check.h | 7 ++++++-
+ s2check/s2tcase.c | 20 ++++++++++++++++++--
+ 2 files changed, 24 insertions(+), 3 deletions(-)
+
+diff --git a/s2check/s2check.h b/s2check/s2check.h
+index 47b9455..a3573aa 100644
+--- a/s2check/s2check.h
++++ b/s2check/s2check.h
+@@ -45,14 +45,19 @@ SOFIA_BEGIN_DECLS
+ #undef tcase_add_loop_test
+
+ /* Redirect tcase_add_test() to our function */
++#if CHECK_MINOR_VERSION >= 13
++#define tcase_add_test(tc, ttest) s2_tcase_add_test(tc, ttest, 0, 0, 1)
++
++void s2_tcase_add_test(TCase *, const TTest *, int signo, int start, int end);
++#else
+ #define tcase_add_test(tc, tf) s2_tcase_add_test(tc, tf, "" #tf "", 0, 0, 1)
+
+ void s2_tcase_add_test(TCase *, TFun, char const *name,
+ int signo, int start, int end);
++#endif
+
+ #define tcase_add_loop_test(tc, tf, s, e) \
+ s2_tcase_add_test(tc, tf, "" #tf "", 0, (s), (e))
+-
+ void s2_select_tests(char const *pattern);
+
+ SOFIA_END_DECLS
+diff --git a/s2check/s2tcase.c b/s2check/s2tcase.c
+index 382aaa3..955a731 100644
+--- a/s2check/s2tcase.c
++++ b/s2check/s2tcase.c
+@@ -46,10 +46,18 @@ static char const * const *test_patterns = default_patterns;
+ * A special version of tcase_add_test() that inserts test function into
+ * tcase only if its name matches given pattern.
+ */
+-void s2_tcase_add_test(TCase *tc, TFun tf, char const *name,
+- int signo, int start, int end)
++void s2_tcase_add_test(TCase *tc,
++#if CHECK_MINOR_VERSION >= 13
++ const TTest *ttest,
++#else
++ TFun tf, char const *name,
++#endif
++ int signo, int start, int end)
+ {
+ char const * const *patterns;
++#if CHECK_MINOR_VERSION >= 13
++ const char *name = ttest->name;
++#endif
+
+ #if HAVE_FNMATCH_H
+ for (patterns = test_patterns; *patterns; patterns++) {
+@@ -57,7 +65,11 @@ void s2_tcase_add_test(TCase *tc, TFun tf, char const *name,
+ if (strcmp(*patterns, "*")) {
+ printf("%s: selected\n", name);
+ }
++#if CHECK_MINOR_VERSION >= 13
++ _tcase_add_test(tc, ttest, signo, 0, start, end);
++#else
+ _tcase_add_test(tc, tf, name, signo, 0, start, end);
++#endif
+ return;
+ }
+ }
+@@ -67,7 +79,11 @@ void s2_tcase_add_test(TCase *tc, TFun tf, char const *name,
+ if (strcmp(*patterns, "*")) {
+ printf("%s: selected\n", name);
+ }
++#if CHECK_MINOR_VERSION >= 13
++ _tcase_add_test(tc, ttest, signo, 0, start, end);
++#else
+ _tcase_add_test(tc, tf, name, signo, 0, start, end);
++#endif
+ return;
+ }
+ }
+--
+2.29.2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..effe2d84e68
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Clarence <xjh.azzbcc@gmail.com>
+_pkgname=sofia-sip
+pkgname=${_pkgname}-fs
+pkgver=1.13.2
+pkgrel=1
+pkgdesc="An open-source SIP User-Agent library (FreeSWITCH version)"
+arch=('x86_64')
+url="https://github.com/freeswitch/sofia-sip"
+license=('LGPL')
+depends=('glib2' 'openssl' 'gawk')
+provides=('sofia-sip')
+conflicts=('sofia-sip')
+source=("${pkgname}-${pkgver}.tar.xz::https://github.com/freeswitch/$_pkgname/archive/v$pkgver.tar.gz"
+ '0001-Compatible-with-the-new-version-of-libckeck.patch')
+sha256sums=('b9eca9688ce4b28e062daf0933c3bf661fb607e7afafa71bda3e8f07eb88df44'
+ '7e52ec8ee1340042982c2d7b5612e37b7140daea5e5b67e2bd392b2c367913de')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ patch -p1 -N -b -z .orig < ../0001-Compatible-with-the-new-version-of-libckeck.patch
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}