diff options
Diffstat (limited to 'apkg')
| -rwxr-xr-x | apkg | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -369,11 +369,22 @@ build_src() { ret 1 fi - cd $PKG - spm -b $packagefile || { - msg "Failed packaging $packagefile" - ret 1 - } + # temporary: for backward compatibility + if [ "$(grep '#MARKER' /usr/bin/spm)" ] then + cd $PKG + spm -b $packagefile || { + msg "Failed packaging $packagefile" + ret 1 + } + else + cd $APKG_PACKAGE_DIR + spm -b $PKG && { + mv package.spm $packagefile + } || { + msg "Failed packaging $packagefile" + ret 1 + } + fi if [ ! -f "$HERE"/.files ] || [ "$HERE"/abuild -nt "$HERE"/.files ]; then pkg_updatefiles |