From deda506dd297543ca8e2685cc1dc417df5b9d786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Wed, 17 Jun 2020 16:15:37 -0300 Subject: [PATCH] Waybar: add update file, fix clean-up. - It was finding weird matches. - Clean-up was leaving the date library around. --- srcpkgs/Waybar/template | 6 ++++-- srcpkgs/Waybar/update | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/Waybar/update diff --git a/srcpkgs/Waybar/template b/srcpkgs/Waybar/template index 42b922ca0d..9b4c085ef1 100644 --- a/srcpkgs/Waybar/template +++ b/srcpkgs/Waybar/template @@ -2,6 +2,8 @@ pkgname=Waybar version=0.9.2 revision=1 +create_wrksrc=yes +build_wrksrc=${pkgname}-${version} build_style=meson configure_args="-Dgtk-layer-shell=enabled -Dlibudev=enabled -Dman-pages=enabled -Dsystemd=disabled @@ -37,8 +39,8 @@ desc_option_libnl="Enable libnl support for network related features" desc_option_dbusmenugtk="Enable support for tray" desc_option_mpd="Enable support for MPD" -pre_configure() { - cp -rv ../date-2.4.1 subprojects/ +post_extract() { + mv date-2.4.1 ${build_wrksrc}/subprojects/ } post_install() { diff --git a/srcpkgs/Waybar/update b/srcpkgs/Waybar/update new file mode 100644 index 0000000000..cb21145435 --- /dev/null +++ b/srcpkgs/Waybar/update @@ -0,0 +1,2 @@ +site="https://github.com/Alexays/Waybar/releases" +pattern='"/Alexays/Waybar/tree/\K[\d.]+(?=")'