69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
function postdownload() {
:
}
function extract() {
if [ -d "${buildsrcdir}" ]; then
mkdir "${workdir}" || return 1
cp -rp "${buildsrcdir}"/* "${workdir}" || return 1
return 0
fi
if [ -n "${pkgarchive}" ]; then
(
mkdir "${workdir}" || exit 1
cd "${workdir}" || exit 1
case "${pkgarchive}" in
*.tar.gz|*.tgz)
gzip -dc "${pkgarchive}" | tar -xf - || exit 1
;;
|
|
|
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
function postdownload() {
:
}
function extract() {
if [ -d "${buildsrcdir}" ]; then
mkdir -p "${workdir}" || return 1
cp -rp "${buildsrcdir}"/* "${workdir}" || return 1
return 0
fi
if [ -n "${pkgarchive}" ]; then
(
mkdir -p "${workdir}" || exit 1
cd "${workdir}" || exit 1
case "${pkgarchive}" in
*.tar.gz|*.tgz)
gzip -dc "${pkgarchive}" | tar -xf - || exit 1
;;
|