From fdfde78ad0bd36c46a27896a96009617b1cdfadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 24 Mar 2023 10:03:04 +0700 Subject: [PATCH] perl-Linux-Distribution: use /etc/os-release --- srcpkgs/perl-Linux-Distribution/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/perl-Linux-Distribution/template b/srcpkgs/perl-Linux-Distribution/template index dc9f7341e23..4b3e6fd207d 100644 --- a/srcpkgs/perl-Linux-Distribution/template +++ b/srcpkgs/perl-Linux-Distribution/template @@ -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 +}