perl-Linux-Distribution: use /etc/os-release

This commit is contained in:
Đoàn Trần Công Danh 2023-03-24 10:03:04 +07:00
parent 85fe58902e
commit fdfde78ad0
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'perl-Linux-Distribution'
pkgname=perl-Linux-Distribution
version=0.23
revision=3
revision=4
build_style=perl-module
hostmakedepends="perl"
makedepends="perl"
@ -12,3 +12,11 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/Linux-Distribution"
distfiles="${CPAN_SITE}/Linux/Linux-Distribution-${version}.tar.gz"
checksum=603e27da607b3e872a669d7a66d75982f0969153eab2d4b20c341347b4ebda5f
post_patch() {
vsed -i -e 's/lsb-release/os-release/' \
lib/Linux/Distribution.pm \
t/Linux-Distribution.t \
t/ubuntu1404/files
mv t/ubuntu1404/lsb-release t/ubuntu1404/os-release
}