Commit 9f2a4eb8 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Natanael Copa

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

* modernize
* run tests
parent 3f94dc69
......@@ -3,32 +3,33 @@
pkgname=perl-io-stringy
_realname=IO-stringy
pkgver=2.111
pkgrel=1
pkgrel=2
pkgdesc="A Perl module for I/O on in-core objects like strings and arrays"
url="http://search.cpan.org/~dskoll/IO-stringy/"
url="https://metacpan.org/pod/IO::Stringy"
arch="noarch"
license="Artistic-Perl-1.0 GPL+"
license="Artistic-Perl-1.0 OR GPL-1.0-or-later"
depends="perl"
makedepends="perl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DS/DSKOLL/$_realname-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/D/DS/DSKOLL/$_realname-$pkgver.tar.gz"
_builddir="$srcdir/$_realname-$pkgver"
builddir="$srcdir/$_realname-$pkgver"
build() {
cd "$_builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
# creates file collision among perl modules
find "$pkgdir" -name perllocal.pod -delete
}
md5sums="e91acf0a800b190d13585a47de775bdd IO-stringy-2.111.tar.gz"
sha256sums="8c67fd6608c3c4e74f7324f1404a856c331dbf48d9deda6aaa8296ea41bf199d IO-stringy-2.111.tar.gz"
sha512sums="9da8fb03945bc4a59cea3b3b2e22b15d56b133470e581d1cb03920bda2b4953e3c9e4a25d095ed8a384efb5a4c58db437c92cca6a81d583791191f1a37691a4a IO-stringy-2.111.tar.gz"
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