mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/perl-linux-pid: modernize and add package description
This commit is contained in:
parent
bd6f950985
commit
42d319766b
@ -4,38 +4,41 @@
|
|||||||
pkgname=perl-linux-pid
|
pkgname=perl-linux-pid
|
||||||
_pkgreal=Linux-Pid
|
_pkgreal=Linux-Pid
|
||||||
pkgver=0.04
|
pkgver=0.04
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="unknown"
|
pkgdesc="Get the native PID and the PPID on Linux"
|
||||||
url="http://search.cpan.org/dist/Linux-Pid/"
|
url="http://search.cpan.org/dist/Linux-Pid/"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="GPL PerlArtistic"
|
license="GPL PerlArtistic"
|
||||||
cpandepends=""
|
cpandepends=""
|
||||||
cpanmakedepends=" "
|
cpanmakedepends=""
|
||||||
depends="$cpandepends"
|
depends="$cpandepends"
|
||||||
makedepends="perl-dev $cpanmakedepends"
|
makedepends="perl-dev $cpanmakedepends"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/$_pkgreal-$pkgver.tar.gz"
|
source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/$_pkgreal-$pkgver.tar.gz"
|
||||||
|
|
||||||
_builddir="$srcdir/$_pkgreal-$pkgver"
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
make && make test
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="130c4d299f827abf1f2285fddf03fccb Linux-Pid-0.04.tar.gz"
|
|
||||||
sha256sums="f2ac2444a74e762783bbd36c486352f96340434d34ae7926d6ab234966540f49 Linux-Pid-0.04.tar.gz"
|
|
||||||
sha512sums="b28418285f6e75e87d23b6eae2b5bcd300ba68248b10a0fc8ba38e8e4c09a3053076e591357263caf43dc09958bceea02680f420bb92ed05ce243a36b1e42c09 Linux-Pid-0.04.tar.gz"
|
sha512sums="b28418285f6e75e87d23b6eae2b5bcd300ba68248b10a0fc8ba38e8e4c09a3053076e591357263caf43dc09958bceea02680f420bb92ed05ce243a36b1e42c09 Linux-Pid-0.04.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user