blob: 4e72f6025163188175525068e1882c273d93f62e (
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
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=shards
pkgver=0.8.1
pkgrel=1
_minitestver=0.4.1
pkgdesc="Dependency manager for the Crystal language"
url="https://github.com/crystal-lang/shards"
arch="x86_64 aarch64" # limited by crystal aport
license="Apache-2.0"
depends="crystal git"
makedepends="yaml-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/crystal-lang/$pkgname/archive/v$pkgver.tar.gz
minitest.cr-$_minitestver.tar.gz::https://github.com/ysbaddaden/minitest.cr/archive/v$_minitestver.tar.gz
fix-target_failed_to_compile.patch
"
builddir="$srcdir/$pkgname-$pkgver"
export CRYSTAL_CACHE_DIR="$srcdir/.cache"
prepare() {
default_prepare
cd "$builddir"
mkdir -p lib
ln -s ../../minitest.cr-$_minitestver lib/minitest
}
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
export EMAIL="Test User <user@example.com>"
make test_integration
}
package() {
cd "$builddir"
make install DESTDIR="$pkgdir" PREFIX=/usr
}
sha512sums="c0a8a8531a37e033c6d96ac36dd30dcd3d005c6b1bd7c94dbeee7f6ea9b34a08ab2e14b826c3c18f60dca991f60ec6780df090cafc32403a7272e39dc07e99df shards-0.8.1.tar.gz
3e17bca0b2f9ad5b575f9996bb8056e087dc69b5ea53b81b647dfe15a4f43c40c3b1e06fc0c52d9bf9279f58f35a754b68c58c84e86a2ddbbfc9826349d47957 minitest.cr-0.4.1.tar.gz
3109ea9619fdfe90959012c888bdfa06c4fc4a6c7b4aefe805704a1bc412e7d4d65db77a518dbfc60c5a34baabfea79d257f58825f67f05071533d704fef8bd0 fix-target_failed_to_compile.patch"
|