updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / timekpr / PKGBUILD
blobd870a5786e61452888443e30d54d5282444a3370
1 # Contributor: SanskritFritz (gmail)
3 pkgname=timekpr
4 pkgver=0.3.2
5 pkgrel=6
6 pkgdesc="This program will control the computer usage of your user accounts. You can limit their daily usage based on a timed access duration and configure periods of day when they can log in."
7 arch=('i686' 'x86_64')
8 url=https://launchpad.net/timekpr
9 license=('GPL')
10 depends=('python2')
11 source=(http://launchpad.net/$pkgname/trunk/$pkgver/+download/${pkgname}_${pkgver}~ppa1~ubuntu2.tar.gz
12         timekprd.sh)
13 install='timekpr.install'
14 md5sums=('0626ee6b6b6d218dfdd6e79331f789a2'
15          'ab37e469034200c19b46a31d586bfe3e')
17 build() {
18         cd $srcdir/stable
20         msg "Please input your desired su command (gksu|gksudo|kdesu|kdesudo etc) for starting timekpr-gui: "
21         read su_command;
22         sed -i "s/gksu/${su_command}/" debian/timekpr.desktop
25 package() {
26         install -dm755 $pkgdir/etc/{rc.d,timekpr,logrotate.d,xdg/autostart}
27         install -dm755 $pkgdir/usr/{bin,share/{doc/timekpr,timekpr,python-support/timekpr,pixmaps,applications,man/man8}}
28         install -dm755 $pkgdir/usr/share/locale/{da,de,fr,hu,nb,sv,fi}/LC_MESSAGES
29         install -dm755 $pkgdir/var/lib/timekpr
31         cd $srcdir/stable
32         install -m644 etc/timekpr.conf $pkgdir/etc/
33         install -m644 etc/logrotate.d/timekpr $pkgdir/etc/logrotate.d/
34         sed -i "s/python/python2/" timekpr
35         install -m755 timekpr $pkgdir/usr/bin/
36         sed -i "s/python/python2/" timekpr-gui
37         install -m755 timekpr-gui $pkgdir/usr/bin/
38         sed -i "s/python/python2/" timekpr-client
39         install -m755 timekpr-client $pkgdir/usr/bin/
40         install -m755 timekprpam.py $pkgdir/usr/share/python-support/timekpr/
41         install -m755 timekpr.py $pkgdir/usr/share/python-support/timekpr/
42         install -m755 timekpr-gui.py $pkgdir/usr/share/python-support/timekpr/
43         install -m755 gui/client/timekpr-client.py $pkgdir/usr/share/python-support/timekpr/
44         install -m755 timekprpam.py $pkgdir/usr/share/python-support/timekpr/
45         install -m755 timekprcommon.py $pkgdir/usr/share/python-support/timekpr/
46         install -m644 gui/padlock-green.png $pkgdir/usr/share/timekpr/
47         install -m644 gui/padlock-red.png $pkgdir/usr/share/timekpr/
48         install -m644 gui/timekpr.glade $pkgdir/usr/share/timekpr/
49         install -m644 gui/timekpr100x100.png $pkgdir/usr/share/timekpr/
50         install -m644 gui/timekpr32x32.png $pkgdir/usr/share/timekpr/
51         install -m644 gui/timekpr.xpm $pkgdir/usr/share/pixmaps/
52         install -m644 debian/timekpr.desktop $pkgdir/usr/share/applications/
53         install -m644 debian/timekpr-client.desktop $pkgdir/etc/xdg/autostart
54         install -m644 locale/da/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/da/LC_MESSAGES/
55         install -m644 locale/de/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/de/LC_MESSAGES/
56         install -m644 locale/fr/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/fr/LC_MESSAGES/
57         install -m644 locale/hu/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/hu/LC_MESSAGES/
58         install -m644 locale/nb/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/nb/LC_MESSAGES/
59         install -m644 locale/sv/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/sv/LC_MESSAGES/
60         install -m644 locale/fi/LC_MESSAGES/timekpr.mo $pkgdir/usr/share/locale/fi/LC_MESSAGES/
61         install -m644 TODO.txt $pkgdir/usr/share/doc/timekpr
62         install -m644 README.txt $pkgdir/usr/share/doc/timekpr
63         install -m644 COPYRIGHT.txt $pkgdir/usr/share/doc/timekpr
64         install -m644 CONTRIBUTORS.txt $pkgdir/usr/share/doc/timekpr
65         install -m644 debian/changelog $pkgdir/usr/share/doc/timekpr
66         install -m644 doc/timekpr.8 $pkgdir/usr/share/man/man8
68         install -m755 debian/timekpr.postrm $pkgdir/usr/bin/
69         install -m755 debian/timekpr.postinst $pkgdir/usr/bin/
71         cd $srcdir
72         install -m755 timekprd.sh $pkgdir/etc/rc.d/timekprd