blob: 4b1c228cf276a085e9c917cf9e3e6b995b48f6e4 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=alacryd-git
pkgver=20160917
pkgrel=1
pkgdesc="Expedient Perl6 module installation"
arch=('any')
depends=('perl6')
makedepends=('git')
checkdepends=('perl')
groups=('perl6')
url="https://github.com/atweiden/alacryd"
license=('UNLICENSE')
source=(git+https://github.com/atweiden/alacryd)
sha256sums=('SKIP')
provides=('alacryd')
conflicts=('alacryd')
install=alacryd.install
pkgver() {
cd ${pkgname%-git}
git log -1 --format="%cd" --date=short | sed "s|-||g"
}
check() {
cd ${pkgname%-git}
msg2 'Running tests...'
PERL6LIB=lib prove -r -e perl6
}
package() {
cd ${pkgname%-git}
msg2 'Installing license...'
install -Dm 644 UNLICENSE -t "$pkgdir/usr/share/licenses/alacryd"
msg2 'Installing documentation...'
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/alacryd"
msg2 'Installing...'
install -dm 755 "$pkgdir/usr/share/perl6/vendor"
export RAKUDO_LOG_PRECOMP=1
PERL6LIB=lib perl6 \
-I"inst#$pkgdir/usr/share/perl6/vendor" \
-MAlacryd -e 'install()'
msg2 'Removing redundant precomp file dependencies...'
_precomp=($(pacman -Qqg perl6 | pacman -Qql - | grep -E 'dist|precomp' || true))
for _pc in "${_precomp[@]}"; do
[[ -f "$pkgdir/$_pc" ]] && rm -f "$pkgdir/$_pc"
done
msg2 'Cleaning up pkgdir...'
rm -f "$pkgdir/usr/share/perl6/vendor/version"
find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \;
find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$pkgdir,,g"
find "$pkgdir" -type f -print0 | xargs -0 sed -i "s,$srcdir,,g"
}
|