aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-06-07 13:16:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-07-22 11:05:36 +0000
commit9f2a4eb82d4b2966a79d8d86bd07f5e7f68a83be (patch)
tree363c89496e97af25e3005bb862caf68716137bbb
parent3f94dc69146a04b4c80b915ac5ee14fb4b2faecf (diff)
downloadaports-9f2a4eb82d4b2966a79d8d86bd07f5e7f68a83be.tar.bz2
aports-9f2a4eb82d4b2966a79d8d86bd07f5e7f68a83be.tar.xz
main/perl-io-stringy: fix URL&License
* modernize * run tests
-rw-r--r--main/perl-io-stringy/APKBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/main/perl-io-stringy/APKBUILD b/main/perl-io-stringy/APKBUILD
index 9e3d709a94..30d1927018 100644
--- a/main/perl-io-stringy/APKBUILD
+++ b/main/perl-io-stringy/APKBUILD
@@ -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"