blob: c632ca70016befb87cfcb9398dccd3032cf0b63d (
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=20240613
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=('c7fe6958ae63729976875b86586d5ec27500546b5425585f66f58a65a998a041')
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"
}
|