Laurent Bercot 34654c2a42 main/libutempter: rebuild for libskarnet-2.14.so
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2023-11-06 21:43:09 +00:00

31 lines
998 B
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libutempter
pkgver=1.2.1
_pkgver=$pkgver-alt1
pkgrel=9
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="$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
"