From ad50945d80451fccbbdc474ae84234b893834024 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 16 Jul 2013 09:30:09 +0000
Subject: [PATCH] abuild: use versioned depends for -dev subpackage

---
 abuild.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/abuild.in b/abuild.in
index 479cd6cfa6ef..3fdae0b0d385 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1251,11 +1251,11 @@ doc() {
 # predefined splitfunc dev
 default_dev() {
 	local i= j=
-	depends="$pkgname $depends_dev"
+	depends="$pkgname=$pkgver-r$pkgrel $depends_dev"
 	pkgdesc="$pkgdesc (development files)"
 
 	for i in $origsubpackages; do
-		[ "${i%:*}" = "$subpkgname" ] || depends="$depends ${i%:*}"
+		[ "${i%:*}" = "$subpkgname" ] || depends="$depends ${i%:*}=$pkgver-r$pkgrel"
 	done
 
 	cd "$pkgdir" || return 0
-- 
GitLab