diff --git a/srcpkgs/tint2/patches/add-power-now-support.patch b/srcpkgs/tint2/patches/add-power-now-support.patch new file mode 100644 index 00000000000..7f172af7bed --- /dev/null +++ b/srcpkgs/tint2/patches/add-power-now-support.patch @@ -0,0 +1,18 @@ +--- src/battery/battery.c 2010-12-02 23:56:11.313403140 +0100 ++++ src/battery/battery.c 2010-12-02 23:57:22.266956142 +0100 +@@ -184,8 +184,14 @@ void init_battery() + } + g_free(path2); + } +- if (path_energy_now && path_energy_full) { ++ ++ path_current_now = g_build_filename(battery_dir, "power_now", NULL); ++ if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) { ++ g_free(path_current_now); + path_current_now = g_build_filename(battery_dir, "current_now", NULL); ++ } ++ ++ if (path_energy_now && path_energy_full) { + path_status = g_build_filename(battery_dir, "status", NULL); + + // check file diff --git a/srcpkgs/tint2/template b/srcpkgs/tint2/template new file mode 100644 index 00000000000..2457037c5ac --- /dev/null +++ b/srcpkgs/tint2/template @@ -0,0 +1,20 @@ +# Template file for 'tint2' +pkgname=tint2 +version=0.11 +revision=1 +build_style=cmake +hostmakedepends="cmake pkg-config" +makedepends="libXcomposite-devel libXinerama-devel libXrandr-devel gtk+-devel imlib2-devel desktop-file-utils" +short_desc="A basic, good-looking task manager for WMs" +maintainer="Juan RP " +license="GPL-2" +homepage="http://code.google.com/p/tint2/" +distfiles="http://$pkgname.googlecode.com/files/$pkgname-${version}.tar.bz2" +checksum=fe106e6a6057d2631abddde9f82d3fd4fb1985c4fb93f10d3886417a9e22471d + +tint2_package() { + depends="desktop-file-utils" + pkg_install() { + vmove usr + } +}