mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/perl-gtk2-ex-listmodelconcat: modernize
This commit is contained in:
parent
eac4d6e79f
commit
5e5e471c8c
@ -4,7 +4,7 @@
|
||||
pkgname=perl-gtk2-ex-listmodelconcat
|
||||
_pkgreal=Gtk2-Ex-ListModelConcat
|
||||
pkgver=11
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Concatenate list models in Gtk2-Perl."
|
||||
url="https://metacpan.org/release/Gtk2-Ex-ListModelConcat/"
|
||||
arch="noarch"
|
||||
@ -12,25 +12,23 @@ license="open_source"
|
||||
depends="perl perl-glib perl-gtk2 perl-glib-ex-objectbits perl-gtk2-ex-widgetbits"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||
make && make test
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
||||
sha512sums="f46fb70aaa69ae2a669b87760dea950402576f81059590ef8d227c270ac2efdacc4959a698def46aa26a3e676349eb31085290ab5fcfea9c1ce6c56f23043cc4 Gtk2-Ex-ListModelConcat-11.tar.gz"
|
||||
sha512sums="
|
||||
f46fb70aaa69ae2a669b87760dea950402576f81059590ef8d227c270ac2efdacc4959a698def46aa26a3e676349eb31085290ab5fcfea9c1ce6c56f23043cc4 Gtk2-Ex-ListModelConcat-11.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user