Commit e9176910 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Natanael Copa
Browse files

main/perl-io-tty: fix URL&License

* modernize
* Enable tests
parent 8b767a98
...@@ -4,33 +4,36 @@ ...@@ -4,33 +4,36 @@
pkgname=perl-io-tty pkgname=perl-io-tty
_pkgreal=IO-Tty _pkgreal=IO-Tty
pkgver=1.12 pkgver=1.12
pkgrel=5 pkgrel=6
pkgdesc="Pseudo ttys and constants" pkgdesc="Pseudo ttys and constants"
url="" url=""
arch="all" arch="all"
license="GPL PerlArtistic" license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="" depends="perl"
cpanmakedepends="" makedepends="perl-dev"
depends="$cpandepends perl"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="$_pkgreal-$pkgver.tar.gz" source="$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver" builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$_builddir" cd "$builddir"
make 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
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment