aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnome-terminal
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-05-02 00:13:56 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 17:37:23 +0000
commitb5f9a58208d0747105e8a2b94878b2f64eef6493 (patch)
treebaf083dbc29b80e66bc4f0772d0c7504450d3fcd /testing/gnome-terminal
parent57c4feed2bd1c7ffd2ab9fcedb9f1d6541af69ac (diff)
downloadaports-b5f9a58208d0747105e8a2b94878b2f64eef6493.tar.bz2
aports-b5f9a58208d0747105e8a2b94878b2f64eef6493.tar.xz
testing/gnome-terminal: move from unmainted, upgrade to 3.32.0
Diffstat (limited to 'testing/gnome-terminal')
-rw-r--r--testing/gnome-terminal/APKBUILD38
-rw-r--r--testing/gnome-terminal/fix-W_EXITCODE.patch17
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/gnome-terminal/APKBUILD b/testing/gnome-terminal/APKBUILD
new file mode 100644
index 0000000000..ff3657fa9c
--- /dev/null
+++ b/testing/gnome-terminal/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=gnome-terminal
+pkgver=3.32.1
+pkgrel=0
+pkgdesc="GNOME terminal emulator application"
+url="https://wiki.gnome.org/Apps/Terminal"
+arch="all !aarch64 !armhf !armv7 !s390x" # limited by gnome-shell
+license="GPL-2.0-or-later GFDL-1.3-only"
+depends="desktop-file-utils"
+makedepends="dconf-dev gnome-shell gsettings-desktop-schemas-dev nautilus-dev vte3-dev
+ glib-dev intltool itstool glib-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://download.gnome.org/sources/gnome-terminal/${pkgver%.*}/gnome-terminal-${pkgver}.tar.xz
+ fix-W_EXITCODE.patch"
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="e5654bdb88852cced83961c9370a0b708aa9f9191c41801f72d32fd0a48d177b776c4eae2c8baac922451b9e5dfc90372a28274b5d8612ec65a6a0fd84d2a2a1 gnome-terminal-3.32.1.tar.xz
+21a426f7237a07057b83114282fe302787659ec4a171e894abb3542842403bfedbc051b7b19b48866266aeabaaa8d4590fdec0f058b5255b3309f315ae2f1fa6 fix-W_EXITCODE.patch"
diff --git a/testing/gnome-terminal/fix-W_EXITCODE.patch b/testing/gnome-terminal/fix-W_EXITCODE.patch
new file mode 100644
index 0000000000..6eda24ae7e
--- /dev/null
+++ b/testing/gnome-terminal/fix-W_EXITCODE.patch
@@ -0,0 +1,17 @@
+Source: https://mail-archives.apache.org/mod_mbox/mesos-reviews/201610.mbox/%3C20161014170728.1720.54446@reviews.apache.org%3E
+Upstream: No
+Reason: fixes compilation with musl that doesn't define W* macros.
+
+--- a/src/terminal.c
++++ b/src/terminal.c
+@@ -47,6 +47,10 @@
+ GS_DEFINE_CLEANUP_FUNCTION0(TerminalOptions*, gs_local_options_free, terminal_options_free)
+ #define gs_free_options __attribute__ ((cleanup(gs_local_options_free)))
+
++#ifndef W_EXITCODE
++#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
++#endif
++
+ /* Wait-for-exit helper */
+
+ typedef struct {