updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / logintop10 / PKGBUILD
blobc89ffaebe7638a017fdc8e58815ad5c24f482136
1 # Maintainer: Jozef Riha <jose1711@gmail.com>
2 pkgname=logintop10
3 pkgver=1.9
4 pkgrel=1
5 pkgdesc="Command-line utility that creates several top-10 lists from the wtmp (usually in /var/log/) on your system."
6 arch=('i686')
7 license=('GPL')
8 url=("http://www.vanheusden.com/logintop10/")
9 source=(http://www.vanheusden.com/logintop10/logintop10-1.9.tgz)
10 depends=('glibc')
11 md5sums=('e816ad4eb9f18b0f779241df1c4d971a')
13 build() {
14         cd ${startdir}
15         cd ${startdir}/src/$pkgname-$pkgver
16         sed -i "/LOCALE_PATH/s/\b\/local\b//" Makefile
17         make || return 1
18         mkdir -p $startdir/pkg/usr/{bin,share/locale/{nl,fr,es,ar,de}/LC_MESSAGES,share/man/man1}
19         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10 ${startdir}/pkg/usr/bin/
20         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10-nl.mo ${startdir}/pkg/usr/share/locale/nl/LC_MESSAGES/logintop10.mo
21         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10-fr.mo ${startdir}/pkg/usr/share/locale/fr/LC_MESSAGES/logintop10.mo
22         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10-es.mo ${startdir}/pkg/usr/share/locale/es/LC_MESSAGES/logintop10.mo
23         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10-ar.mo ${startdir}/pkg/usr/share/locale/ar/LC_MESSAGES/logintop10.mo
24         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10-de.mo ${startdir}/pkg/usr/share/locale/de/LC_MESSAGES/logintop10.mo
25         mv -v ${startdir}/src/${pkgname}-${pkgver}/logintop10.1 ${startdir}/pkg/usr/share/man/man1/logintop10.1
26         gzip -9 ${startdir}/pkg/usr/man/man1/logintop10.1
27         chmod 755 ${startdir}/pkg/usr/bin/logintop10
28         chmod 644 ${startdir}/pkg/usr/share/locale/nl/LC_MESSAGES/logintop10.mo
29         chmod 644 ${startdir}/pkg/usr/share/locale/fr/LC_MESSAGES/logintop10.mo
30         chmod 644 ${startdir}/pkg/usr/share/locale/es/LC_MESSAGES/logintop10.mo
31         chmod 644 ${startdir}/pkg/usr/share/locale/ar/LC_MESSAGES/logintop10.mo
32         chmod 644 ${startdir}/pkg/usr/share/locale/de/LC_MESSAGES/logintop10.mo