summaryrefslogtreecommitdiffstats
path: root/abs/extra/libutempter/PKGBUILD
blob: bbc27d9b1f72db535d3b51308008c51a3b9cf8ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libutempter
pkgver=1.1.6
pkgrel=2
pkgdesc="Interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files"
arch=('i686' 'x86_64')
url="ftp://ftp.altlinux.org/pub/people/ldv/utempter"
license=('LGPL')
depends=('glibc')
source=(ftp://ftp.altlinux.org/pub/people/ldv/utempter/$pkgname-$pkgver.tar.bz2)
md5sums=('b43827806923903aba2bc7cd3a2d45b7')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  RPM_OPT_FLAGS="$CFLAGS" make
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  chown root:utmp "$pkgdir/usr/lib/utempter/utempter"
  chmod 2755 "$pkgdir/usr/lib/utempter/utempter"
}