Skip to content

Commit 8beb858

Browse files
authored
Merge pull request #81 from sixtyfourktec/p7zpi
Add utils::p7zip v17.05
2 parents ea02b01 + 890d3e4 commit 8beb858

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎recipes/utils/p7zip.yaml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
inherit: [cpackage, make, install]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "17.05"
5+
PKG_LICENSE: "LGPL-2.1+ with unRAR restriction"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/p7zip-project/p7zip/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA1: f8c03d6b55759867fb464bfe5caf49149de34b01
11+
stripComponents: 1
12+
13+
buildVars: [CC, CXX, CFLAGS, CPPFLAGS, LDFLAGS]
14+
buildScript: |
15+
mkdir -p build
16+
pushd build
17+
cp -arfs $1/* .
18+
makeParallel \
19+
CC="$CC" ALLFLAGS_C="$CFLAGS" \
20+
CXX="$CXX" ALLFLAGS_CPP="$CPPFLAGS" \
21+
LDFLAGS="$LDFLAGS" \
22+
7z 7za 7zr
23+
24+
makeParallel \
25+
DEST_HOME=/usr \
26+
DEST_DIR=$BOB_CWD/install \
27+
install
28+
popd
29+
30+
# fix the shell scripts so that they also work as tools when the base path
31+
# is unknown
32+
sed -i 's,/usr/lib/p7zip/,\$(dirname $0)/../lib/p7zip/,' install/usr/bin/7z*
33+
34+
packageScript: |
35+
installPackageTgt "$1/install/"
36+
37+
provideTools:
38+
"p7zip": "usr/bin"

0 commit comments

Comments
 (0)