From a1c5cd9694902ce59fefdb0196c1bc8b91ef1909 Mon Sep 17 00:00:00 2001 From: travankor Date: Wed, 11 Sep 2019 05:58:50 -0700 Subject: [PATCH 1/6] New package: i3ipc-python-2.1.1 --- srcpkgs/i3ipc-python/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/i3ipc-python/template diff --git a/srcpkgs/i3ipc-python/template b/srcpkgs/i3ipc-python/template new file mode 100644 index 00000000000..9247149b117 --- /dev/null +++ b/srcpkgs/i3ipc-python/template @@ -0,0 +1,19 @@ +# Template file for 'i3ipc-python' +pkgname=i3ipc-python +version=2.1.1 +revision=1 +archs=noarch +build_style=python3-module +pycompile_module="i3ipc" +hostmakedepends="python3 python3-setuptools" +depends="python3-xlib" +short_desc="Python library to control i3wm and sway" +maintainer="travankor " +license="BSD-3-Clause" +homepage="https://github.com/altdesktop/i3ipc-python" +distfiles="https://github.com/altdesktop/i3ipc-python/archive/v${version}.tar.gz" +checksum=0dcd46519603ce3e52c4ae69e50efe1e7a31c03af15e0b9b639055de40daff15 + +post-install() { + vlicense LICENSE +} From 796fca35eec1cba48f86b60773068d7fd673bb7b Mon Sep 17 00:00:00 2001 From: travankor Date: Thu, 12 Sep 2019 15:31:51 -0700 Subject: [PATCH 2/6] New package: python3-marshmallow-2.20.3 --- srcpkgs/python3-marshmallow/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-marshmallow/template diff --git a/srcpkgs/python3-marshmallow/template b/srcpkgs/python3-marshmallow/template new file mode 100644 index 00000000000..416f8f7cb8d --- /dev/null +++ b/srcpkgs/python3-marshmallow/template @@ -0,0 +1,19 @@ +# Template file for 'python3-marshmallow' +pkgname=python3-marshmallow +version=2.20.3 +revision=1 +archs=noarch +wrksrc=marshmallow-${version} +build_style=python3-module +pycompile_module="marshmallow" +hostmakedepends="python3 python3-setuptools" +short_desc="Library for converting complex objects from Python datatypes" +maintainer="travankor " +license="MIT" +homepage="https://github.com/marshmallow-code/marshmallow" +distfiles="https://github.com/marshmallow-code/marshmallow/archive/${version}.tar.gz" +checksum=094f29d5886208e22574bb0ab9cff31c0aa0a8c58b22a19d75949cbed9fb9657 + +post-install() { + vlicense LICENSE +} From fa2f045c07d5adc0b57d9d5d82f3a47799d009b8 Mon Sep 17 00:00:00 2001 From: travankor Date: Thu, 12 Sep 2019 15:31:56 -0700 Subject: [PATCH 3/6] New package: flashfocus-2.0.3 --- srcpkgs/flashfocus/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/flashfocus/template diff --git a/srcpkgs/flashfocus/template b/srcpkgs/flashfocus/template new file mode 100644 index 00000000000..3827aecacb2 --- /dev/null +++ b/srcpkgs/flashfocus/template @@ -0,0 +1,25 @@ +# Template file for 'flashfocus' +pkgname=flashfocus +version=2.0.3 +revision=1 +archs=noarch +build_style=python3-module +pycompile_module="flashfocus" +hostmakedepends="python3-setuptools" +depends="i3ipc-python python3-click python3-marshmallow + python3-yaml" +short_desc="Simple focus animations for i3wm and sway" +maintainer="travankor " +license="MIT" +homepage="https://github.com/fennerm/flashfocus" +distfiles="https://github.com/fennerm/flashfocus/archive/v${version}.tar.gz" +checksum=231b260c6e18cc3cc6400d22797e5c8441432dc2c08154fdccc77c78934ba5d1 + +pre_build() { + #use i3ipc instead of xcb + sed -i '22d;24,25d' setup.py +} + +post_install() { + vlicense LICENSE +} From 3521131982ce4a173b363497f60f3789cb504c16 Mon Sep 17 00:00:00 2001 From: travankor Date: Fri, 13 Sep 2019 02:05:12 -0700 Subject: [PATCH 4/6] fix i3 --- srcpkgs/flashfocus/patches/fix_i3.patch | 21 +++++++++++++++++++++ srcpkgs/flashfocus/template | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 srcpkgs/flashfocus/patches/fix_i3.patch diff --git a/srcpkgs/flashfocus/patches/fix_i3.patch b/srcpkgs/flashfocus/patches/fix_i3.patch new file mode 100644 index 00000000000..3dcdf675a9d --- /dev/null +++ b/srcpkgs/flashfocus/patches/fix_i3.patch @@ -0,0 +1,21 @@ +diff --git a/flashfocus/compat.py b/flashfocus/compat.py +index 3f971b6..1eae16c 100644 +--- a/flashfocus/compat.py ++++ b/flashfocus/compat.py +@@ -1,6 +1,7 @@ + """Compatibility module for abstracting across display protocols.""" + from enum import auto, Enum + import os ++import subprocess + + + class DisplayProtocol(Enum): +@@ -11,6 +12,8 @@ class DisplayProtocol(Enum): + def get_display_protocol() -> DisplayProtocol: + if os.environ.get("WAYLAND_DISPLAY"): + protocol = DisplayProtocol.WAYLAND ++ elif subprocess.check_output(["wmctrl", "-m"]).decode("utf-8").split()[1] == "i3": ++ protocol = DisplayProtocol.WAYLAND + else: + protocol = DisplayProtocol.X11 + return protocol diff --git a/srcpkgs/flashfocus/template b/srcpkgs/flashfocus/template index 3827aecacb2..f0f5cc06120 100644 --- a/srcpkgs/flashfocus/template +++ b/srcpkgs/flashfocus/template @@ -12,8 +12,10 @@ short_desc="Simple focus animations for i3wm and sway" maintainer="travankor " license="MIT" homepage="https://github.com/fennerm/flashfocus" +changelog="https://raw.githubusercontent.com/fennerm/flashfocus/master/CHANGELOG.md" distfiles="https://github.com/fennerm/flashfocus/archive/v${version}.tar.gz" checksum=231b260c6e18cc3cc6400d22797e5c8441432dc2c08154fdccc77c78934ba5d1 +patch_args="-Np1" pre_build() { #use i3ipc instead of xcb From 36df9048490560acdaa304fe7338453316e1d077 Mon Sep 17 00:00:00 2001 From: travankor Date: Sun, 15 Sep 2019 01:20:04 -0700 Subject: [PATCH 5/6] Partial xcffib package --- srcpkgs/python3-xcffib/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-xcffib/template diff --git a/srcpkgs/python3-xcffib/template b/srcpkgs/python3-xcffib/template new file mode 100644 index 00000000000..1bd62b014e2 --- /dev/null +++ b/srcpkgs/python3-xcffib/template @@ -0,0 +1,21 @@ +# Template file for 'python3-xcffib' +pkgname=python3-xcffib +version=0.8.1 +revision=1 +wrksrc=xcffib-${version} +archs=noarch +build_style=python3-module +hostmakedepends="cabal-install ghc python3 python3-setuptools" +makedepends="libxcb-devel" +depends="python3-cffi python3-six " +short_desc="Drop-in replacement for xpyb based on cffi" +maintainer="travankor " +license="Apache-2.0" +homepage="https://github.com/tych0/xcffib" +distfiles="https://github.com/tych0/xcffib/archive/v${version}.tar.gz" +checksum=879d9bc360e63e62a8f9b80299127ecbdb7de90271ebfe6a532fbb894efab59a + +pre_build() { + cabal new-update + +} From 865670921ffd9321188835438a72ceacccd9ab6b Mon Sep 17 00:00:00 2001 From: travankor Date: Sun, 15 Sep 2019 02:31:56 -0700 Subject: [PATCH 6/6] Attempt haskell package. --- srcpkgs/flashfocus/patches/fix_i3.patch | 21 --------------------- srcpkgs/flashfocus/template | 5 ----- srcpkgs/python3-xpybutil/template | 16 ++++++++++++++++ srcpkgs/xcb-types/template | 15 +++++++++++++++ 4 files changed, 31 insertions(+), 26 deletions(-) delete mode 100644 srcpkgs/flashfocus/patches/fix_i3.patch create mode 100644 srcpkgs/python3-xpybutil/template create mode 100644 srcpkgs/xcb-types/template diff --git a/srcpkgs/flashfocus/patches/fix_i3.patch b/srcpkgs/flashfocus/patches/fix_i3.patch deleted file mode 100644 index 3dcdf675a9d..00000000000 --- a/srcpkgs/flashfocus/patches/fix_i3.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/flashfocus/compat.py b/flashfocus/compat.py -index 3f971b6..1eae16c 100644 ---- a/flashfocus/compat.py -+++ b/flashfocus/compat.py -@@ -1,6 +1,7 @@ - """Compatibility module for abstracting across display protocols.""" - from enum import auto, Enum - import os -+import subprocess - - - class DisplayProtocol(Enum): -@@ -11,6 +12,8 @@ class DisplayProtocol(Enum): - def get_display_protocol() -> DisplayProtocol: - if os.environ.get("WAYLAND_DISPLAY"): - protocol = DisplayProtocol.WAYLAND -+ elif subprocess.check_output(["wmctrl", "-m"]).decode("utf-8").split()[1] == "i3": -+ protocol = DisplayProtocol.WAYLAND - else: - protocol = DisplayProtocol.X11 - return protocol diff --git a/srcpkgs/flashfocus/template b/srcpkgs/flashfocus/template index f0f5cc06120..82f34f5d5b2 100644 --- a/srcpkgs/flashfocus/template +++ b/srcpkgs/flashfocus/template @@ -17,11 +17,6 @@ distfiles="https://github.com/fennerm/flashfocus/archive/v${version}.tar.gz" checksum=231b260c6e18cc3cc6400d22797e5c8441432dc2c08154fdccc77c78934ba5d1 patch_args="-Np1" -pre_build() { - #use i3ipc instead of xcb - sed -i '22d;24,25d' setup.py -} - post_install() { vlicense LICENSE } diff --git a/srcpkgs/python3-xpybutil/template b/srcpkgs/python3-xpybutil/template new file mode 100644 index 00000000000..46007f47729 --- /dev/null +++ b/srcpkgs/python3-xpybutil/template @@ -0,0 +1,16 @@ +# Template file for 'python3-xpybutil' +pkgname=python3-xpybutil +version=0.0.6 +revision=1 +wrksrc=xpybutil-${version} +archs=noarch +build_style=python3-module +pycompile_module="xpybutil" +hostmakedepends="python3 python3-setuptools" +depends="python3-xcffib" +short_desc="Abstraction over the X Python Binding" +maintainer="travankor " +license="WTFPL" +homepage="https://github.com/BurntSushi/xpybutil" +distfiles="https://github.com/BurntSushi/xpybutil/archive/${version}.tar.gz" +checksum=d4ec75384989945ac45d5a15679bdde71d2b95f7d74517a69812723fe97a0c68 diff --git a/srcpkgs/xcb-types/template b/srcpkgs/xcb-types/template new file mode 100644 index 00000000000..3ae3b31b319 --- /dev/null +++ b/srcpkgs/xcb-types/template @@ -0,0 +1,15 @@ +# Template file for 'xcb-types' +pkgname=xcb-types +version=0.10.0 +revision=1 +build_style=haskell-stack +stackage="lts-14.6" +hostmakedepends="cabal-install ghc" +makedepends="" +depends="" +short_desc="Parse XML files used by the XCB project" +maintainer="travankor " +license="BSD-3-Clause" +homepage="https://hackage.haskell.org/package/xcb-types" +distfiles="https://github.com/aslatter/xcb-types/archive/${version}.tar.gz" +checksum=a15c85790bb4b94742139f70f0688bfd20e1e0d7b989c4b31a0b0ff6d9770e2f