summaryrefslogtreecommitdiff
path: root/repo/util
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-17 23:48:46 +0000
committerdavidovski <david@davidovski.xyz>2022-01-17 23:48:46 +0000
commit94dfaab639203d27124953168e857dc545d9bf0a (patch)
treef6240960942d7bc7a430ddff68798513f3b6ee89 /repo/util
parent09f4bd75c011aef47c10f60bdc685a7dc1466c82 (diff)
added cpio
Diffstat (limited to 'repo/util')
-rw-r--r--repo/util/cpio.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/util/cpio.xibuild b/repo/util/cpio.xibuild
new file mode 100644
index 0000000..e57532f
--- /dev/null
+++ b/repo/util/cpio.xibuild
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+PKG_VER=2.13
+SOURCE=https://ftp.gnu.org/gnu/cpio/cpio-$PKG_VER.tar.bz2
+DESC="The free Bourne Again Shell"
+
+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 -v -m755 -d $PKG_DEST/usr/share/doc/cpio-2.13/html &&
+ install -v -m644 doc/html/* \
+ $PKG_DEST/usr/share/doc/cpio-2.13/html &&
+ install -v -m644 doc/cpio.{html,txt} \
+ $PKG_DEST/usr/share/doc/cpio-2.13
+}
+