From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/cpio/cpio.xibuild | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 repo/cpio/cpio.xibuild (limited to 'repo/cpio/cpio.xibuild') diff --git a/repo/cpio/cpio.xibuild b/repo/cpio/cpio.xibuild new file mode 100644 index 0000000..2c3a41d --- /dev/null +++ b/repo/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 +} + -- cgit v1.2.1