summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-01-04 19:06:26 -0800
committerAndy Weidenbaum2016-01-04 19:06:26 -0800
commitff81489ae02e80e5f3bbb5d8fde01c075d696b9b (patch)
tree013d86865ac4687a086b4802a5a7c24e7787c655
downloadaur-ff81489ae02e80e5f3bbb5d8fde01c075d696b9b.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD48
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..19346d02abb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue Jan 5 03:06:24 UTC 2016
+pkgbase = perl6-io-socket-ssl
+ pkgdesc = IO::Socket::SSL for Perl 6 using OpenSSL
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = https://github.com/sergot/io-socket-ssl
+ arch = any
+ groups = perl6
+ license = PerlArtistic
+ checkdepends = perl
+ makedepends = alacryd
+ makedepends = git
+ depends = perl6
+ depends = perl6-openssl
+ source = perl6-io-socket-ssl-0.0.1::git+https://github.com/sergot/io-socket-ssl
+ sha256sums = SKIP
+
+pkgname = perl6-io-socket-ssl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e4027061dea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=perl6-io-socket-ssl
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="IO::Socket::SSL for Perl 6 using OpenSSL"
+arch=('any')
+depends=('perl6' 'perl6-openssl')
+checkdepends=('perl')
+makedepends=('alacryd' 'git')
+groups=('perl6')
+url="https://github.com/sergot/io-socket-ssl"
+license=('PerlArtistic')
+source=($pkgname-$pkgver::git+https://github.com/sergot/io-socket-ssl)
+sha256sums=('SKIP')
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Running tests...'
+ PERL6LIB=lib prove -r -e perl6
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Installing documentation...'
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+
+ msg2 'Installing...'
+ install -dm 755 "$pkgdir/usr/share/perl6/vendor"
+ export RAKUDO_LOG_PRECOMP=1
+ export PERL6LIB="inst#$pkgdir/usr/share/perl6/vendor"
+ alacryd install
+
+ msg2 'Removing redundant precomp file dependencies...'
+ _precomp=($(pacman -Qg perl6 \
+ | awk '{print $2}' \
+ | xargs pacman -Ql \
+ | awk '{print $2}' \
+ | grep precomp))
+ for _pc in "${_precomp[@]}"; do
+ [[ -f "$pkgdir/$_pc" ]] && rm -f "$pkgdir/$_pc"
+ done
+
+ msg2 'Cleaning up pkgdir...'
+ find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \;
+}