--- gkrellm-thinkbat-0.2.2.orig/Makefile +++ gkrellm-thinkbat-0.2.2/Makefile @@ -3,7 +3,7 @@ CFLAGS = -I. -Wall -pedantic -O2 INCLUDE = `pkg-config gtk+-2.0 --cflags` -fPIC -DVERSION=\"$(VERSION)\" LFLAGS = -shared -lm -INSTALLDIR = ~/.gkrellm2/plugins/ +INSTALLDIR = $(DESTDIR)/usr/lib/gkrellm2/plugins/ @@ -19,7 +19,7 @@ $(CC) $(INCLUDE) -c collect_data.c clean : - rm *.o gkrellm-thinkbat.so + rm -f *.o gkrellm-thinkbat.so install : gkrellm-thinkbat.so install -d $(INSTALLDIR) --- gkrellm-thinkbat-0.2.2.orig/debian/dirs +++ gkrellm-thinkbat-0.2.2/debian/dirs @@ -0,0 +1 @@ +usr/lib/gkrellm2/plugins --- gkrellm-thinkbat-0.2.2.orig/debian/docs +++ gkrellm-thinkbat-0.2.2/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +README +TODO --- gkrellm-thinkbat-0.2.2.orig/debian/control +++ gkrellm-thinkbat-0.2.2/debian/control @@ -0,0 +1,19 @@ +Source: gkrellm-thinkbat +Section: x11 +Priority: optional +Maintainer: Adam Sloboda +Build-Depends: debhelper (>= 5), gkrellm (>= 2.0.0), libgtk2.0-dev, pkg-config +Standards-Version: 3.7.3 +Homepage: http://people.ksp.sk/~rasto/gkrellm-thinkbat/ + +Package: gkrellm-thinkbat +Architecture: any +Depends: ${shlibs:Depends}, gkrellm (>= 2.0.0) +Description: ThinkPad laptops battery status indicator for GKrellM + This plugin displays: + * power consumption + * time estimation + * remaining capacity percentage + * charging information + . + tp_smapi kernel module is required as source of information about battery. --- gkrellm-thinkbat-0.2.2.orig/debian/rules +++ gkrellm-thinkbat-0.2.2/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/gkrellm-thinkbat install + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- gkrellm-thinkbat-0.2.2.orig/debian/changelog +++ gkrellm-thinkbat-0.2.2/debian/changelog @@ -0,0 +1,6 @@ +gkrellm-thinkbat (0.2.2-1) unstable; urgency=low + + * Initial release (Closes: #470831) + + -- Adam Sloboda Thu, 13 Mar 2008 22:18:07 +0100 + --- gkrellm-thinkbat-0.2.2.orig/debian/compat +++ gkrellm-thinkbat-0.2.2/debian/compat @@ -0,0 +1 @@ +5 --- gkrellm-thinkbat-0.2.2.orig/debian/copyright +++ gkrellm-thinkbat-0.2.2/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Adam Sloboda on +Thu, 13 Mar 2008 22:18:07 +0100. + +It was downloaded from http://people.ksp.sk/~rasto/gkrellm-thinkbat/ + +Upstream Author: Rasto Sramek + +Copyright: (C) 2006 Rasto Sramek + + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2008, Adam Sloboda and +is licensed under the GPL, see above.