mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=shards
|
|
pkgver=0.8.1
|
|
pkgrel=0
|
|
_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
|
|
"
|
|
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"
|