aboutsummaryrefslogtreecommitdiffstats
path: root/main/libutempter/APKBUILD
blob: ac55a85ddbbcbd966fd378c6c8d5ae78bc859c2b (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
27
28
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libutempter
pkgver=1.2.1
_pkgver=$pkgver-alt1
pkgrel=2
pkgdesc="Library interface to record user sessions in utmp/wtmp files"
url="http://freecode.com/projects/libutempter"
arch="all"
license="LGPL-2.1-or-later"
makedepends="utmps-dev"
subpackages="$pkgname-dev $pkgname-doc"
options="suid !check"
pkggroups="utmp"
source="https://github.com/altlinux/libutempter/archive/$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver/$pkgname"

build() {
	make CFLAGS="-I/usr/include/utmps" LDLIBS="-Wl,--no-as-needed -lutmps -lskarnet -Wl,--as-needed"
}

package() {
	make DESTDIR="$pkgdir" install
	chown root:$pkggroups "$pkgdir/usr/lib/utempter/utempter"
	chmod 2755 "$pkgdir/usr/lib/utempter/utempter"
}

sha512sums="4dcc52bdc0d45b959c45d37d195794f5386061490b943e4473485259de46f31bb23d82feb74a54aea49eeb339bf1682a0a96adba1ae4a1114c8f39aaa2df6761  1.2.1-alt1.tar.gz"