Skip to content
Snippets Groups Projects
Commit 073e579e authored by Leo's avatar Leo
Browse files

testing/perl-sys-syscall: fix url fix license

parent 63e28717
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,12 @@
pkgname=perl-sys-syscall
_pkgreal=Sys-Syscall
pkgver=0.25
pkgrel=3
pkgrel=4
pkgdesc="Invoke system calls that are otherwise difficult to do from Perl"
url="http://search.cpan.org/dist/Sys-Syscall/"
url="https://metacpan.org/release/Sys-Syscall"
arch="all !aarch64 !s390x"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/$_pkgreal-$pkgver.tar.gz
ppc64le_epoll.patch
......@@ -24,25 +19,21 @@ builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment