diff options
author | davidovski <david@davidovski.xyz> | 2022-02-27 00:55:34 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-27 00:55:34 +0000 |
commit | 79c82d8fc0a4f6618429a0373bb832afd105543e (patch) | |
tree | 81353122644b10b2c3d5be52bf3524890cbc377b /repo/system/utmps.xibuild | |
parent | 7e7775ad670c99b2823d812c782f6ff258e79b9b (diff) |
added all missing libraries and headers that musl doesnt have
Diffstat (limited to 'repo/system/utmps.xibuild')
-rw-r--r-- | repo/system/utmps.xibuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/system/utmps.xibuild b/repo/system/utmps.xibuild new file mode 100644 index 0000000..28b358f --- /dev/null +++ b/repo/system/utmps.xibuild @@ -0,0 +1,38 @@ +#!/bin/sh + +MAKEDEPS="" +DEPS="skalib" + +PKG_VER=0.1.1.0 +SOURCE=https://skarnet.org/software/utmps/utmps-0.1.1.0.tar.gz + +DESC="Library implementing utmpx.h family of functions" + +prepare () { + sed -i -e "s/@@VERSION@@/0.1.1.0/g" -- /tmp/*.pc +} + +build () { + ./configure \ + --enable-shared \ + --libdir=/usr/lib \ + --with-dynlib=/lib \ + --libexecdir="/lib/utmps" \ + --with=dynlib=/lib + make +} + +package () { + make DESTDIR=$PKG_DEST install + ln -sv utmps/utmpx.h $PKG_DEST/usr/include/utmpx.h + + cat > $PKG_DEST/usr/lib/pkgconfig/utmps.pc << EOF +Name: utmps +Description: A secure implementation of the utmp mechanism. +URL: https://skarnet.org/software/utmps/ +Version: @@VERSION@@ +Requires.private: skalibs +Libs: -lutmps +Cflags: -I/usr/include/utmps +EOF +} |