summaryrefslogtreecommitdiff
path: root/user/perl-io-tty/APKBUILD
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-10-05 02:56:25 -0700
committerDan Theisen <djt@hxx.in>2018-10-05 02:56:25 -0700
commit1b0bf7092df10ea56033ce9f04a2eb6d6983ad75 (patch)
treec164d1df77c49c6a13108260ecbb23363a5b0e4b /user/perl-io-tty/APKBUILD
parent812e6339c36cf0d5c04e01c01d7f978a26edbf81 (diff)
downloadpackages-1b0bf7092df10ea56033ce9f04a2eb6d6983ad75.tar.gz
packages-1b0bf7092df10ea56033ce9f04a2eb6d6983ad75.tar.bz2
packages-1b0bf7092df10ea56033ce9f04a2eb6d6983ad75.tar.xz
packages-1b0bf7092df10ea56033ce9f04a2eb6d6983ad75.zip
user/perl-io-tty: new package
Diffstat (limited to 'user/perl-io-tty/APKBUILD')
-rw-r--r--user/perl-io-tty/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-io-tty/APKBUILD b/user/perl-io-tty/APKBUILD
new file mode 100644
index 000000000..d42b831a2
--- /dev/null
+++ b/user/perl-io-tty/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-io-tty
+pkgver=1.12
+pkgrel=0
+pkgdesc="Low-level allocate a pseudo-tty"
+url="https://metacpan.org/pod/IO::Tty"
+arch="all"
+license="Artistic-1.0-Perl"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/T/TO/TODDR/IO-Tty-$pkgver.tar.gz"
+builddir="$srcdir/IO-Tty-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="23733e7832a0de370952420df8a781f85d28ff60eb4cd55be22147337bf5587f4e1ec7fcfc190ae3ad1fd9df0f9697f2d647e00739f4a2927b1ac9c81435454d IO-Tty-1.12.tar.gz"