diff options
author | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
commit | f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch) | |
tree | 76fe6267f8307e7630fc6f53ff99a9767ad40de0 /skip/ext-dump | |
parent | 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff) |
Work
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 +} |