Files
Arch-R/scripts
Matthias Reichl 1c5d050bc0 scripts/extract: improve tar file handling
GNU tar can automatically detect the compression format based on
the file name since at least 2006. So just use "tar xf" to extract
all tarballs and drop the redundant cases.

GNU tar can also strip the top level directory from the archive
which allows us to extract it to the directory wanted by the
build system ($PKG_NAME-$PKG_VERSION), so packages don't need to
specify PKG_SOURCE_DIR if the top level dir from that and scripts/unpack
doesn't need to rename the directory.

If PKG_SOURCE_DIR is not set the top level dir is automatically
stripped from the archive and extracted to $BUILD/$PKG_NAME-$PKG_VERSION

If PKG_SOURCE_DIR is set, scripts/extract behaviour is unchanged.

Signed-off-by: Matthias Reichl <hias@horus.com>
2018-08-26 22:26:04 +02:00
..
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00
2018-08-20 22:28:32 +04:00
2018-08-21 23:37:45 +02:00
2018-07-17 23:58:49 +02:00
2018-07-17 23:58:49 +02:00