From b0977b9f219487ef7141c33ac1b841ce781be8e3 Mon Sep 17 00:00:00 2001 From: Victor Tebar Date: Wed, 4 May 2022 22:00:36 +0200 Subject: [PATCH 1/3] New package: tlpui-1.5.0 --- srcpkgs/tlpui/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/tlpui/template diff --git a/srcpkgs/tlpui/template b/srcpkgs/tlpui/template new file mode 100644 index 000000000000..c83d6537746f --- /dev/null +++ b/srcpkgs/tlpui/template @@ -0,0 +1,24 @@ +# Template file for 'tlpui' +pkgname=tlpui +version=1.5.0 +revision=1 +wrksrc="TLPUI-${pkgname}-${version}" +makedepends="python-setuptools" +depends="tlp python-gobject" +short_desc="A GTK user interface for TLP written in Python" +maintainer="Visone Selektah " +license="GPL2" +homepage="https://github.com/d4nj1/TLPUI" +distfiles="https://github.com/d4nj1/TLPUI/archive/refs/tags/tlpui-1.5.0.tar.gz" +checksum=37c31f88798c5dc2b7e77e49bcc2ef3d374abb93b2f903b2cd836fbcc5947b9a + + +do_build() { + python ./setup.py build +} + +do_install() { + export PYTHONHASHSEED=0 + python setup.py install --root="${DESTDIR}/" --optimize=1 --skip-build + vinstall tlpui.desktop 644 usr/share/xsessions +} From 3e889cceb3d17a012491a13b587926f8b76d7a47 Mon Sep 17 00:00:00 2001 From: Victor Tebar Date: Wed, 4 May 2022 22:50:34 +0200 Subject: [PATCH 2/3] tlpui: fix errors and add build_style --- srcpkgs/tlpui/template | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/srcpkgs/tlpui/template b/srcpkgs/tlpui/template index c83d6537746f..3119444f6543 100644 --- a/srcpkgs/tlpui/template +++ b/srcpkgs/tlpui/template @@ -3,22 +3,13 @@ pkgname=tlpui version=1.5.0 revision=1 wrksrc="TLPUI-${pkgname}-${version}" -makedepends="python-setuptools" -depends="tlp python-gobject" -short_desc="A GTK user interface for TLP written in Python" +build_style="python3-module" +hostmakedepends="python3-setuptools" +depends="tlp python3-gobject" +short_desc="GTK user interface for TLP written in Python" maintainer="Visone Selektah " -license="GPL2" +license="GPL-2.0-or-later" homepage="https://github.com/d4nj1/TLPUI" -distfiles="https://github.com/d4nj1/TLPUI/archive/refs/tags/tlpui-1.5.0.tar.gz" +distfiles="https://github.com/d4nj1/TLPUI/archive/refs/tags/tlpui-${version}.tar.gz" checksum=37c31f88798c5dc2b7e77e49bcc2ef3d374abb93b2f903b2cd836fbcc5947b9a - - -do_build() { - python ./setup.py build -} - -do_install() { - export PYTHONHASHSEED=0 - python setup.py install --root="${DESTDIR}/" --optimize=1 --skip-build - vinstall tlpui.desktop 644 usr/share/xsessions -} +make_check=no From e5e9262cac4df050a5c40ad6de27fca8432bf53c Mon Sep 17 00:00:00 2001 From: Victor Tebar Date: Fri, 6 May 2022 12:06:34 +0200 Subject: [PATCH 3/3] tlpui: fix 'cannot open display' error --- srcpkgs/tlpui/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/tlpui/template b/srcpkgs/tlpui/template index 3119444f6543..f36637637d14 100644 --- a/srcpkgs/tlpui/template +++ b/srcpkgs/tlpui/template @@ -5,11 +5,12 @@ revision=1 wrksrc="TLPUI-${pkgname}-${version}" build_style="python3-module" hostmakedepends="python3-setuptools" -depends="tlp python3-gobject" +depends="gtk+3 tlp python3-gobject " +checkdepends="xvfb-run ${depends}" short_desc="GTK user interface for TLP written in Python" maintainer="Visone Selektah " license="GPL-2.0-or-later" homepage="https://github.com/d4nj1/TLPUI" distfiles="https://github.com/d4nj1/TLPUI/archive/refs/tags/tlpui-${version}.tar.gz" checksum=37c31f88798c5dc2b7e77e49bcc2ef3d374abb93b2f903b2cd836fbcc5947b9a -make_check=no +make_check_pre="xvfb-run"