diff options
author | Piroro-hs | 2024-04-08 03:49:19 +0900 |
---|---|---|
committer | Piroro-hs | 2024-04-08 03:49:19 +0900 |
commit | 4b6f45bea9802ac6725ffceacde4bc8c8d84d36d (patch) | |
tree | 8b71fab516a962963c59c1f09de7e861611e0da0 | |
download | aur-4b6f45bea9802ac6725ffceacde4bc8c8d84d36d.tar.gz |
46.0
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | 0001-bundle-patched-vte.patch | 48 | ||||
-rw-r--r-- | PKGBUILD | 73 |
3 files changed, 160 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0be60e10e6b4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +pkgbase = ptyxis + pkgdesc = A terminal for a container-oriented desktop + pkgver = 46.0 + pkgrel = 1 + url = https://gitlab.gnome.org/chergert/ptyxis + arch = x86_64 + license = GPL-3.0-or-later + license = LGPL-3.0-or-later + makedepends = git + makedepends = meson + makedepends = patchutils + makedepends = python-packaging + depends = cairo + depends = dconf + depends = fribidi + depends = gcc-libs + depends = glib2 + depends = glibc + depends = gnutls + depends = gtk4 + depends = hicolor-icon-theme + depends = icu + depends = json-glib + depends = libadwaita + depends = libportal + depends = libportal-gtk4 + depends = lz4 + depends = pango + depends = pcre2 + depends = systemd-libs + depends = vte-common + source = ptyxis::git+https://gitlab.gnome.org/chergert/ptyxis#tag=46.0 + source = ptyxis_vte::git+https://gitlab.gnome.org/GNOME/vte.git#tag=0.76.0 + source = 0001-bundle-patched-vte.patch + sha256sums = ce302fa4867e957542599642bc835a840b2496632c60fce53edba906ccf8f899 + sha256sums = 1b3c7c20f0c0c68e6a14f016f58a21f6fecf39079dbf46b2e01f436dc8f315a3 + sha256sums = e60c1b17c6e8e6596b75569ea47a550487823bb0b729b21005c0fb6e7f55b71d + +pkgname = ptyxis diff --git a/0001-bundle-patched-vte.patch b/0001-bundle-patched-vte.patch new file mode 100644 index 000000000000..2a8374b6a2e9 --- /dev/null +++ b/0001-bundle-patched-vte.patch @@ -0,0 +1,48 @@ +diff --git a/meson.build b/meson.build +index ce2961ae..9305da5d 100644 +--- a/meson.build ++++ b/meson.build +@@ -17,7 +17,7 @@ + project( + 'vte', + ['c', 'cpp'], +- version: '0.76.0', ++ version: '10000.76.0', + license: ['LGPL-3.0-or-later', 'GPL-3.0-or-later'], + default_options: [ + 'buildtype=release', +@@ -62,7 +62,7 @@ liblz4_req_version = '1.9' + + # API + +-vte_api_major_version = 2 ++vte_api_major_version = 10002 + vte_api_minor_version = 91 + vte_api_version = '@0@.@1@'.format(vte_api_major_version, vte_api_minor_version) + vte_api_name = 'vte-@0@.@1@'.format(vte_api_major_version, vte_api_minor_version) +diff --git a/src/meson.build b/src/meson.build +index 3f89f492..9a0ff506 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -726,7 +726,7 @@ vte_csh = configure_file( + + vte_sh = configure_file( + input: 'vte.sh.in', +- output: '@BASENAME@', ++ output: '100007600-@BASENAME@', + configuration: { + 'libexecdir': vte_prefix / vte_libexecdir, + }, +diff --git a/src/vte.sh.in b/src/vte.sh.in +index 2328a9ec..f4210af4 100644 +--- a/src/vte.sh.in ++++ b/src/vte.sh.in +@@ -20,7 +20,7 @@ + [[ $- == *i* ]] || return 0 + + # Not running under vte? +-[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0 ++[ "${VTE_VERSION:-0}" -ge 100007600 ] || return 0 + + # TERM not supported? + case "$TERM" in diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..71c4ab6f0e9a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Piroro-hs + +pkgname=ptyxis +pkgver=46.0 +_vtever=0.76.0 +pkgrel=1 +pkgdesc="A terminal for a container-oriented desktop" +arch=('x86_64') +url="https://gitlab.gnome.org/chergert/ptyxis" +license=('GPL-3.0-or-later' 'LGPL-3.0-or-later') +groups=() +depends=('cairo' + 'dconf' + 'fribidi' + 'gcc-libs' + 'glib2' + 'glibc' + 'gnutls' + 'gtk4' + 'hicolor-icon-theme' + 'icu' + 'json-glib' + 'libadwaita' + 'libportal' + 'libportal-gtk4' + 'lz4' + 'pango' + 'pcre2' + 'systemd-libs' + 'vte-common') +makedepends=('git' + 'meson' + 'patchutils' + 'python-packaging') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +source=("$pkgname::git+$url#tag=$pkgver" + "${pkgname}_vte::git+https://gitlab.gnome.org/GNOME/vte.git#tag=$_vtever" + '0001-bundle-patched-vte.patch') +sha256sums=('ce302fa4867e957542599642bc835a840b2496632c60fce53edba906ccf8f899' + '1b3c7c20f0c0c68e6a14f016f58a21f6fecf39079dbf46b2e01f436dc8f315a3' + 'e60c1b17c6e8e6596b75569ea47a550487823bb0b729b21005c0fb6e7f55b71d') + +prepare() { + mkdir "$srcdir/$pkgname/subprojects" + mv "$srcdir/${pkgname}_vte" "$srcdir/$pkgname/subprojects/vte" + patch -d "$srcdir/$pkgname/subprojects/vte" -p1 -i "$srcdir/0001-bundle-patched-vte.patch" + sed -i '/dependency('\''vte-2.91-gtk4'\'')/c\subproject('\''vte'\'').get_variable('\''libvte_gtk4_dep'\''),' "$srcdir/$pkgname/src/meson.build" + + patch -d "$srcdir/$pkgname/subprojects/vte" -p1 -i "$srcdir/$pkgname/build-aux/0001-add-notification-and-shell-precmd-preexec.patch" + filterdiff -F 2- "$srcdir/$pkgname/build-aux/0001-a11y-implement-GtkAccessibleText.patch" | patch -d "$srcdir/$pkgname/subprojects/vte" -p1 +} + +build() { + arch-meson "$pkgname" build --buildtype=release -Dvte:gtk3=false -Dvte:gtk4=true -Dvte:glade=false -Dvte:gir=false -Dvte:vapi=false + meson compile -C build +} + +package() { + meson install -C build --destdir "$pkgdir" + + # Remove unmodified vte-common files + rm -rf "$pkgdir/usr/lib/vte-urlencode-cwd" + # rm -rf "$pkgdir/usr/lib/systemd/user/vte-spawn-.scope.d/defaults.conf" + # rm -rf "$pkgdir/usr/lib/systemd/user/vte-spawn-.scope.d/vte-spawn-.scope.conf" + rm -rf "$pkgdir/usr/lib/systemd/" + # rm -rf "$pkgdir/usr/include/vte-10002.91-gtk4/" + rm -rf "$pkgdir/usr/include/" + rm -rf "$pkgdir/etc/profile.d/vte.csh" +} |