~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-aports] [PATCH] Fix src builds

Paul Lorenz <plorenz@gmail.com>
Details
Message ID
<1468869582-31793-1-git-send-email-plorenz@gmail.com>
Sender timestamp
1468869582
DKIM signature
missing
Download raw message
Patch: +19 -1
Fix filename_from_uri call
Ensure remote sources are fetched
Include remote sources in source package
Include pre/post scripts
Include trigger scripts
---
 abuild.in | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/abuild.in b/abuild.in
index d4614d1..ec1b798 100644
--- a/abuild.in
+++ b/abuild.in
@@ -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)
-- 
2.7.4



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20160720122954.41f92729@ncopa-desktop.copa.dup.pw>
In-Reply-To
<1468869582-31793-1-git-send-email-plorenz@gmail.com> (view parent)
Sender timestamp
1469010594
DKIM signature
missing
Download raw message
On Mon, 18 Jul 2016 15:19:42 -0400
Paul Lorenz <plorenz@gmail.com> wrote:

> Fix filename_from_uri call
> Ensure remote sources are fetched
> Include remote sources in source package
> Include pre/post scripts
> Include trigger scripts
> ---

applied. thanks!

-nc


---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)