mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
apkbuild-pypi.in: use $pkgver in source
regex taken from `apkbuild-cpan.in`
This commit is contained in:
parent
11c96f25d6
commit
54550dc597
@ -160,6 +160,7 @@ sub write_apkbuild {
|
||||
provides => ($provides or ''),
|
||||
replaces => ($replaces or ''),
|
||||
);
|
||||
$repl{source} =~ s/-$repl{pkgver}/-\$pkgver/g;
|
||||
$template =~ s/\[% (.*?) %\]/$repl{$1}/g;
|
||||
|
||||
open my $fh, '>:utf8', 'APKBUILD';
|
||||
|
Loading…
Reference in New Issue
Block a user