commit 86b3241

chld  ·  2026-08-23 04:34:53 +0000 UTC
parent 557a01a
libudev-zero: import from upstream@64847d5594d50dc257941a2cbf54e5d1dbac1762
3 files changed,  +29, -0
+0, -0
+6, -0
1@@ -0,0 +1,6 @@
2+name: libudev-zero
3+description: a shitty hack to make udev-dependent things work on non-udev systems
4+license: ISC
5+upstream: https://github.com/illiliti/libudev-zero/
6+version: 1.0.3
7+maintainer:
+23, -0
 1@@ -0,0 +1,23 @@
 2+#!/bin/sh -ue
 3+NAME=libudev-zero
 4+VERSION=1.0.3
 5+RELEASE=1
 6+SOURCE="https://github.com/illiliti/libudev-zero/archive/refs/tags/1.0.3.tar.gz"
 7+
 8+build() {
 9+    msg "building libudev-zero..."
10+    make -j"$NPROC" \
11+        CC="cc" \
12+        CFLAGS="${CFLAGS} -static" \
13+        libudev.a || die "make failed"
14+
15+    msg "installing libudev-zero..."
16+    make \
17+        CC="cc" \
18+        CFLAGS="${CFLAGS} -static" \
19+        PREFIX="$PREFIX" \
20+        DESTDIR="$PKG" \
21+        install-static || die "install failed"
22+}
23+
24+. ${0%/*}/../../libsh/libdmake.sh