Username: Password: Remember me
# Maintainer: Francesco Marinucci < franzmari [at] chakralinux [dot] org>
 
pkgname=acct
pkgver=6.6.4
pkgrel=1
pkgdesc="The GNU Accounting Utilities provide login and process accounting utilities for GNU/Linux and other systems."
arch=('x86_64')
url="http://www.gnu.org/software/acct/"
license=('GPL3')
depends=('glibc')
install="$pkgname.install"
source=("http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('7caf66ed43edd11f3a84b9dbac7ebbe7')
 
prepare() {
  cd $pkgname-$pkgver
 
  # textinfo 5.1 fix
  sed -i 's/\(unnumbered\)sub\(subsec\)/\1\2/' accounting.texi
}
 
build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
              --sbindir=/usr/bin
  make
}
 
package() {
  cd $pkgname-$pkgver
  make DESTDIR=$pkgdir install
 
  # rename last to prevent conflict with sysvinit-tools
  mv "$pkgdir/usr/bin/last" "$pkgdir/usr/bin/acct-last"
  mv "$pkgdir/usr/share/man/man1/last.1" "$pkgdir/usr/share/man/man1/acct-last.1"
}