abuild: use versioned depends for -dev subpackage

This commit is contained in:
Natanael Copa 2013-07-16 09:30:09 +00:00
parent 1606a8b31e
commit ad50945d80

View File

@ -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