diff options
Diffstat (limited to 'skip/ext-dump')
-rw-r--r-- | skip/ext-dump/ext-dump.xibuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/skip/ext-dump/ext-dump.xibuild b/skip/ext-dump/ext-dump.xibuild new file mode 100644 index 0000000..fa8e285 --- /dev/null +++ b/skip/ext-dump/ext-dump.xibuild @@ -0,0 +1,35 @@ +#!/bin/sh + +NAME="ext-dump" +DESC="ext2 dump and restore utilities" + +MAKEDEPS="make musl " + +PKG_VER=0.4b47 +SOURCE="https://sourceforge.net/projects/dump/files/dump/$PKG_VER/dump-$PKG_VER.tar.gz/download" + +prepare () { + + for f in \ + compat/include/compatglob.h \ + compat/include/compaterr.h \ + compat/lib/compaterr.c; + do + + sed -i 's/__BEGIN_DECLS/#ifdef __cplusplus\nextern "C" {\n#endif/g' $f + sed -i 's/__END_DECLS/#ifdef __cplusplus\n}\n#endif/g' $f + done +} + +build () { + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --disable-static + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |