This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Command lines used to generate these were: ``` conda skeleton rpm --recursive libX11-devel centos5 libselinux-devel centos5 java-1.7.0-openjdk centos5 java-1.7.0-openjdk-devel centos5 libgcj centos5 mesa-libGL-devel centos5 alsa-lib-devel centos5 alsa-lib centos5 alsa-utils centos5 gtk2-devel centos5 gtk+-devel centos5 libXrandr-devel centos5 ruby centos5 gperf centos5 --output-dir=~/conda/conda-recipes/cdts --architecture x86_64 conda skeleton rpm --recursive libX11-devel centos5 libselinux-devel centos5 java-1.7.0-openjdk centos5 java-1.7.0-openjdk-devel centos5 libgcj centos5 mesa-libGL-devel centos5 alsa-lib-devel centos5 alsa-lib centos5 alsa-utils centos5 gtk2-devel centos5 gtk+-devel centos5 libXrandr-devel centos5 ruby centos5 gperf centos5 --output-dir=~/conda/conda-recipes/cdts --architecture i686 ``` .. the filesystem packages build.sh then needed some minor modification.
- Loading branch information
1 parent
dc2cc03
commit d9563b9
Showing
279 changed files
with
5,726 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package: | ||
name: alsa-lib-cos5-i386 | ||
version: 1.0.17 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-lib-1.0.17-1.el5.i386.rpm | ||
sha1: 2c38078f962846471385dcc6ccc05daeb019d347 | ||
|
||
outputs: | ||
- name: alsa-lib-cos5-i386 | ||
target: noarch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package: | ||
name: alsa-lib-devel-cos5-i386 | ||
version: 1.0.17 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-lib-devel-1.0.17-1.el5.i386.rpm | ||
sha1: 8be0faa51788b6cd71f5c36be3ce138c921e177e | ||
|
||
outputs: | ||
- name: alsa-lib-devel-cos5-i386 | ||
target: noarch | ||
|
||
requirements: | ||
build: | ||
- alsa-lib-cos5-i386 ==1.0.17 | ||
run: | ||
- alsa-lib-cos5-i386 ==1.0.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package: | ||
name: alsa-utils-cos5-i386 | ||
version: 1.0.17 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/alsa-utils-1.0.17-7.el5.i386.rpm | ||
sha1: 4986881ecdcc792e902225ad6a594bc1341412ca | ||
|
||
outputs: | ||
- name: alsa-utils-cos5-i386 | ||
target: noarch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package: | ||
name: atk-cos5-i386 | ||
version: 1.12.2 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/atk-1.12.2-1.fc6.i386.rpm | ||
sha1: 5114ab54100a19ebdd5d1b357420be4d5c1b4f40 | ||
|
||
outputs: | ||
- name: atk-cos5-i386 | ||
target: noarch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package: | ||
name: atk-devel-cos5-i386 | ||
version: 1.12.2 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/atk-devel-1.12.2-1.fc6.i386.rpm | ||
sha1: 45e75f0c2d1ddedf9881dee21534a49b3ccafa6f | ||
|
||
outputs: | ||
- name: atk-devel-cos5-i386 | ||
target: noarch | ||
|
||
requirements: | ||
build: | ||
- atk-cos5-i386 ==1.12.2 | ||
- glib2-devel-cos5-i386 >=2.6.0 | ||
run: | ||
- atk-cos5-i386 ==1.12.2 | ||
- glib2-devel-cos5-i386 >=2.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package: | ||
name: cairo-cos5-i386 | ||
version: 1.2.4 | ||
|
||
source: | ||
url: http://vault.centos.org/5.11/os/i386/CentOS/cairo-1.2.4-5.el5.i386.rpm | ||
sha1: 785f139c87106fc0387212d1d6a22a86cefd767d | ||
|
||
outputs: | ||
- name: cairo-cos5-i386 | ||
target: noarch | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/sh | ||
|
||
# Based on: | ||
# https://www.redhat.com/archives/rpm-list/2003-June/msg00367.html | ||
# Modified to also support xz compression. | ||
|
||
pkg=$1 | ||
if [ "$pkg" = "" -o ! -e "$pkg" ]; then | ||
echo "no package supplied" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
leadsize=96 | ||
o=`expr $leadsize + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
sigsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8` | ||
set `od -j $o -N 8 -t u1 $pkg` | ||
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5` | ||
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9` | ||
|
||
hdrsize=`expr 8 + 16 \* $il + $dl` | ||
o=`expr $o + $hdrsize` | ||
|
||
hdr=`dd if=$pkg ibs=$o skip=1 count=1 2>/dev/null | od -N 2 -t x1 -An` | ||
# macOS dd and Linux od give different results | ||
hdr="${hdr#"${hdr%%[![:space:]]*}"}" | ||
# remove trailing whitespace characters | ||
hdr="${hdr%"${hdr##*[![:space:]]}"}" | ||
if [[ "$hdr" == "1f 8b" ]] || [[ "$hdr" == "1f 8b" ]]; then | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip | ||
else | ||
dd if=$pkg ibs=$o skip=1 2>/dev/null | xz -d | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
RPM=$(basename $(find . -name "*.rpm")) | ||
"${RECIPE_DIR}"/rpm2cpio ${RPM} | cpio -idmv | ||
mkdir -p ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
cp -Rf * ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/ | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/${RPM} | ||
rm ${PREFIX}/i686-conda_cos5-linux-gnu/sysroot/conda_build.sh |
Oops, something went wrong.