summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8334bfa55356c8495afa7797f45e875757d2ca23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>

pkgname=perl6-libcurl
pkgver=0.5.2
pkgrel=1
pkgdesc="A Perl 6 interface to libcurl"
arch=('any')
depends=('curl' 'perl6' 'perl6-json-fast')
checkdepends=('perl' 'perl6-test-meta' 'perl6-test-when')
makedepends=('git')
groups=('perl6')
url="https://github.com/CurtTilmes/perl6-libcurl"
license=('custom')
source=($pkgname-$pkgver::git+https://github.com/CurtTilmes/perl6-libcurl)
sha256sums=('SKIP')

check() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Running tests...'
  PERL6LIB=lib prove -r -e perl6 t/ xt/
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  msg2 'Installing license...'
  install -Dm 644 *.pdf -t "$pkgdir/usr/share/licenses/$pkgname"

  msg2 'Installing documentation...'
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"

  msg2 'Installing...'
  export RAKUDO_LOG_PRECOMP=1
  export RAKUDO_RERESOLVE_DEPENDENCIES=0
  perl6-install-dist \
    --to="$pkgdir/usr/share/perl6/vendor" \
    --for=vendor \
    --from=.
}