summaryrefslogtreecommitdiff
path: root/repo/system/utmps.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
committerdavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
commite8213fac46bfcb8068a883cb88b2bb1587f190f9 (patch)
tree8ec5946d18961404efb12700267e10cffffa6db7 /repo/system/utmps.xibuild
parent79c82d8fc0a4f6618429a0373bb832afd105543e (diff)
made packages work with musl
Diffstat (limited to 'repo/system/utmps.xibuild')
-rw-r--r--repo/system/utmps.xibuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/repo/system/utmps.xibuild b/repo/system/utmps.xibuild
index 28b358f..0d45319 100644
--- a/repo/system/utmps.xibuild
+++ b/repo/system/utmps.xibuild
@@ -1,17 +1,13 @@
#!/bin/sh
MAKEDEPS=""
-DEPS="skalib"
+DEPS="skalibs"
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 \
@@ -24,13 +20,14 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
- ln -sv utmps/utmpx.h $PKG_DEST/usr/include/utmpx.h
+ ln -s utmps/utmpx.h $PKG_DEST/usr/include/utmpx.h
+ install -d $PKG_DEST/usr/lib/pkgconfig
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@@
+Version: $PKG_VER
Requires.private: skalibs
Libs: -lutmps
Cflags: -I/usr/include/utmps