summaryrefslogtreecommitdiff
path: root/repo/util/cpio/cpio.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/util/cpio/cpio.xibuild
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/util/cpio/cpio.xibuild')
-rw-r--r--repo/util/cpio/cpio.xibuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/repo/util/cpio/cpio.xibuild b/repo/util/cpio/cpio.xibuild
new file mode 100644
index 0000000..2c3a41d
--- /dev/null
+++ b/repo/util/cpio/cpio.xibuild
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=2.13
+SOURCE=https://ftp.gnu.org/gnu/cpio/cpio-$PKG_VER.tar.bz2
+DESC="A tool to copy files into or out of a cpio or tar archive"
+
+prepare () {
+ sed -i '/The name/,+2 d' src/global.c
+}
+
+build () {
+ ./configure --prefix=/usr \
+ --enable-mt \
+ --with-rmt=/usr/libexec/rmt &&
+ make &&
+ makeinfo --html -o doc/html doc/cpio.texi &&
+ makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi &&
+ makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install &&
+ install -m755 -d $PKG_DEST/usr/share/doc/cpio-$PKG_VER/html &&
+ install -m644 doc/html/* \
+ $PKG_DEST/usr/share/doc/cpio-$PKG_VER/html &&
+ install -m644 doc/cpio.txt \
+ $PKG_DEST/usr/share/doc/cpio-$PKG_VER
+ install -m644 doc/cpio.html \
+ $PKG_DEST/usr/share/doc/cpio-$PKG_VER
+}
+