blob: 1719685ec3eaff419a9b3637088596734d7ea054 (
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
|
# Maintainer: Margret Riegert <margret at eowyn dot net>
pkgname=crystal-nightly
pkgver=20241103
pkgrel=1
pkgdesc="The Crystal Programming Language, nightly binaries"
arch=('x86_64')
url="http://crystal-lang.org"
license=('Apache')
makedepends=('tar')
depends=('gc' 'pcre2' 'libevent')
checkdepends=('libyaml' 'libxml2' 'gmp' 'git' 'inetutils')
optdepends=('shards: To make the crystal deps command work'
'libyaml: For YAML support'
'gmp: For BigInt support'
'libxml2: For XML support')
conflicts=('crystal' 'shards')
provides=('crystal' 'shards')
source=("$pkgname-$pkgver.tar.gz::https://artifacts.crystal-lang.org/dist/crystal-nightly-linux-$CARCH.tar.gz")
noextract=("$pkgname-$pkgver.tar.gz")
sha256sums=('2d8c391d7f1ef4f68f097d8169492cd719d231856f4cfdb7a351f8b9e347fe9a')
options=("!strip")
PKGEXT='.pkg.tar'
pkgver() {
date '+%Y%m%d' --utc
}
prepare() {
if [ -d "$pkgname-$pkgver" ]; then
rm -rf "$pkgname-$pkgver"
fi
mkdir "$pkgname-$pkgver"
tar -zxvf "$pkgname-$pkgver.tar.gz" -C "$pkgname-$pkgver" --strip-components=1
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "bin/crystal" "$pkgdir/usr/bin/crystal"
install -Dm755 "bin/shards" "$pkgdir/usr/bin/shards"
cp -r "lib" "$pkgdir/usr/lib"
cp -r "share" "$pkgdir/usr/share"
}
|