aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnome-fragments
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gnome-fragments')
-rw-r--r--testing/gnome-fragments/APKBUILD47
-rw-r--r--testing/gnome-fragments/fix-lib-path.patch23
2 files changed, 70 insertions, 0 deletions
diff --git a/testing/gnome-fragments/APKBUILD b/testing/gnome-fragments/APKBUILD
new file mode 100644
index 0000000000..46f5d90eff
--- /dev/null
+++ b/testing/gnome-fragments/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=gnome-fragments
+pkgver=1.4
+_transmission_ver=2.94
+pkgrel=0
+pkgdesc="A GTK3 BitTorrent Client"
+url="https://gitlab.gnome.org/World/Fragments"
+arch="all"
+license="GPL-3.0-only"
+makedepends="meson gtk+3.0-dev libhandy-dev transmission-static vala bsd-compat-headers
+ curl-dev dbus-glib-dev intltool libevent-dev libnotify-dev openssl-dev tar"
+checkdepends="appstream-glib desktop-file-utils"
+subpackages="$pkgname-lang"
+source="https://gitlab.gnome.org/World/Fragments/-/archive/$pkgver/Fragments-$pkgver.tar.gz
+ https://github.com/transmission/transmission-releases/raw/master/transmission-$_transmission_ver.tar.xz
+ fix-lib-path.patch"
+builddir="$srcdir/Fragments-$pkgver"
+
+prepare() {
+ default_prepare
+
+ mv "$srcdir"/transmission-$_transmission_ver/* submodules/transmission
+}
+
+build() {
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=plain \
+ . output
+ ninja -C output
+}
+
+check() {
+ ninja -C output test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="f2c8e2153e85b9a8fedfea28862c74ad377ca75079f874d1e683a1848cd66bc79fee739d4986d2364a44f4dea8acd33b63b3ab94663884358d5ee41f5a068643 Fragments-1.4.tar.gz
+ee411743940f2897aa0bbc351ce79f11d860075d2e9e399d60301eae8cfc453e20426ef553fc62ee43019a07c052d512f5d7972cc4411fb57b1312c2c1558da7 transmission-2.94.tar.xz
+d66c2dc3f235c116f165c0e588ae773621a4edfaed31248bd256f12a52ca89d82f8d1803068bae0f6ecbf71b7b68c84ad4db1d34e14ea2c2aaa9c06a506c38ac fix-lib-path.patch"
diff --git a/testing/gnome-fragments/fix-lib-path.patch b/testing/gnome-fragments/fix-lib-path.patch
new file mode 100644
index 0000000000..ef67422be7
--- /dev/null
+++ b/testing/gnome-fragments/fix-lib-path.patch
@@ -0,0 +1,23 @@
+--- a/submodules/meson.build 2020-02-16 19:44:12.461551929 +0100
++++ b/submodules/meson.build 2020-02-16 19:44:59.327494767 +0100
+@@ -1,8 +1,8 @@
+-b64_lib = meson.get_compiler('c').find_library('b64', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'b64', 'lib'))
+-utp_lib = meson.get_compiler('c').find_library('utp', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'utp', 'lib'))
+-miniupnpc_lib = meson.get_compiler('c').find_library('miniupnpc', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'miniupnpc', 'lib'))
+-dht_lib = meson.get_compiler('c').find_library('dht', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'dht', 'lib'))
+-natpmp_lib = meson.get_compiler('c').find_library('natpmp', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'natpmp', 'lib'))
++b64_lib = meson.get_compiler('c').find_library('b64', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'b64-c1e3323498', 'lib'))
++utp_lib = meson.get_compiler('c').find_library('utp', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'utp-7c4f19abdf', 'lib'))
++miniupnpc_lib = meson.get_compiler('c').find_library('miniupnpc', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'miniupnpc-5de2bcb561', 'lib'))
++dht_lib = meson.get_compiler('c').find_library('dht', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'dht-cc379e406d', 'lib'))
++natpmp_lib = meson.get_compiler('c').find_library('natpmp', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'third-party', 'natpmp-cf7f452d66', 'lib'))
+ event_lib = meson.get_compiler('c').find_library('event')
+
+ curl_lib = meson.get_compiler('c').find_library('libcurl')
+@@ -13,4 +13,4 @@
+ transmission_include = include_directories('transmission/')
+ transmission_lib = meson.get_compiler('c').find_library('libtransmission', dirs: join_paths (meson.source_root (), 'submodules', 'libtransmission', 'libtransmission'))
+ transmission_vapi = meson.get_compiler('vala').find_library('transmission', dirs: vapi_dir)
+-transmission_dep = declare_dependency(include_directories: [transmission_include], dependencies: [pthread_lib, b64_lib, utp_lib, miniupnpc_lib, dht_lib, natpmp_lib, curl_lib, crypto_lib, event_lib, zlib_lib, transmission_vapi, transmission_lib])
+\ No newline at end of file
++transmission_dep = declare_dependency(include_directories: [transmission_include], dependencies: [pthread_lib, b64_lib, utp_lib, miniupnpc_lib, dht_lib, natpmp_lib, curl_lib, crypto_lib, event_lib, zlib_lib, transmission_vapi, transmission_lib])