summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoroli2015-06-12 21:51:33 +0200
committeroli2015-06-12 21:51:33 +0200
commit086d602212c78437e7d359cc32536adba7c17e5a (patch)
tree43a198ea16b8f6f99f7cee8b0386c2d3006bf492
downloadaur-086d602212c78437e7d359cc32536adba7c17e5a.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD37
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b8874ccfd5b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = logintop10
+ pkgdesc = Command-line utility that creates several top-10 lists from the wtmp (usually in /var/log/) on your system.
+ pkgver = 1.9
+ pkgrel = 2
+ url = http://www.vanheusden.com/logintop10/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = glibc
+ source = http://www.vanheusden.com/logintop10/logintop10-1.9.tgz
+ md5sums = e816ad4eb9f18b0f779241df1c4d971a
+
+pkgname = logintop10
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..730dae69411
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Jozef Riha <jose1711@gmail.com>
+# Contributor: karnath
+pkgname=logintop10
+pkgver=1.9
+pkgrel=2
+pkgdesc="Command-line utility that creates several top-10 lists from the wtmp (usually in /var/log/) on your system."
+arch=('i686' 'x86_64')
+license=('GPL')
+url=("http://www.vanheusden.com/logintop10/")
+source=(http://www.vanheusden.com/logintop10/logintop10-1.9.tgz)
+depends=('glibc')
+md5sums=('e816ad4eb9f18b0f779241df1c4d971a')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+ sed -i "/LOCALE_PATH/s/\b\/local\b//" Makefile
+ make
+}
+
+package() {
+ mkdir -p ${pkgdir}/usr/{bin,share/locale/{nl,fr,es,ar,de}/LC_MESSAGES,share/man/man1}
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10 ${pkgdir}/usr/bin/
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10-nl.mo ${pkgdir}/usr/share/locale/nl/LC_MESSAGES/logintop10.mo
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10-fr.mo ${pkgdir}/usr/share/locale/fr/LC_MESSAGES/logintop10.mo
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10-es.mo ${pkgdir}/usr/share/locale/es/LC_MESSAGES/logintop10.mo
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10-ar.mo ${pkgdir}/usr/share/locale/ar/LC_MESSAGES/logintop10.mo
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10-de.mo ${pkgdir}/usr/share/locale/de/LC_MESSAGES/logintop10.mo
+ mv -v ${srcdir}/${pkgname}-${pkgver}/logintop10.1 ${pkgdir}/usr/share/man/man1/logintop10.1
+ gzip -9 ${pkgdir}/usr/share/man/man1/logintop10.1
+ chmod 755 ${pkgdir}/usr/bin/logintop10
+ chmod 644 ${pkgdir}/usr/share/locale/nl/LC_MESSAGES/logintop10.mo
+ chmod 644 ${pkgdir}/usr/share/locale/fr/LC_MESSAGES/logintop10.mo
+ chmod 644 ${pkgdir}/usr/share/locale/es/LC_MESSAGES/logintop10.mo
+ chmod 644 ${pkgdir}/usr/share/locale/ar/LC_MESSAGES/logintop10.mo
+ chmod 644 ${pkgdir}/usr/share/locale/de/LC_MESSAGES/logintop10.mo
+}
+