diff options
author | Paul Lorenz <plorenz@gmail.com> | 2016-07-18 15:19:42 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-07-20 10:24:46 +0000 |
commit | 8946d01ed7f0891711fe62a93d752355c0b4fb98 (patch) | |
tree | 4373949b7edb37665267aa9db23fec717ef59cfa | |
parent | 90899669c2da9cce4b54851c45fb482e6950a876 (diff) | |
download | abuild-8946d01ed7f0891711fe62a93d752355c0b4fb98.tar.gz abuild-8946d01ed7f0891711fe62a93d752355c0b4fb98.tar.bz2 abuild-8946d01ed7f0891711fe62a93d752355c0b4fb98.tar.xz abuild-8946d01ed7f0891711fe62a93d752355c0b4fb98.zip |
Fix src builds
Fix filename_from_uri call
Ensure remote sources are fetched
Include remote sources in source package
Include pre/post scripts
Include trigger scripts
-rw-r--r-- | abuild.in | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -1596,13 +1596,31 @@ rootpkg() { } srcpkg() { + echo "Ensuring source is fetched" + fetch getpkgver || return 1 local p="$pkgname-$pkgver-$pkgrel" local prefix="${startdir##*/}" local i files="$prefix/APKBUILD" for i in $source; do - files="$files $prefix/$(filename_from uri $i)" + echo "Packaging source file: $i" + if [ ! -e $(filename_from_uri $i) ]; then + cp $srcdir/$(filename_from_uri $i) $(filename_from_uri $i) + fi + files="$files $prefix/$(filename_from_uri $i)" + done + + for i in $install; do + echo "Packaging install file: $i" + files="$files $prefix/$i" done + + for i in $triggers; do + local f=${i%=*} + echo "Packaging trigger file: $f" + files="$files $prefix/$f" + done + mkdir -p "$PKGDEST" msg "Creating source package $p.src.tar.gz..." (cd .. && tar -zcf "$PKGDEST/$p.src.tar.gz" $files) |