blob: 36c111bdb0a07859b132ce6898b57fa8efd45f72 (
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
|
# Maintainer: Kemel Zaidan <kemelzaidan@gmail.com>
pkgname=carl-calendar
_pkgname=carl
pkgver=0.3.1
pkgrel=2
makedepends=('rust' 'cargo')
depends=('glibc' 'gcc-libs')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="A colorful commandline calendar with ical support. Similar to cal, but with more features."
license=('MIT' 'CC0-1.0')
url="https://github.com/b1rger/carl"
source=("$url/archive/refs/tags/v$pkgver/$_pkgname-$pkgver.tar.gz")
sha256sums=('c0413e7f1524c757b78e96c0c60adccdfece1748ad46c4409e51c5978ba1d449')
install="carl.install"
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$_pkgname-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$_pkgname-$pkgver"
cargo build --frozen --release --all-features
}
check(){
export RUSTUP_TOOLCHAIN=stable
cd "$_pkgname-$pkgver"
cargo test --frozen --all-features
}
package() {
cd "$_pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_pkgname"
install -Dm644 LICENSES/MIT.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|