You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
malachite/PKGBUILD

36 lines
885 B
Bash

# Maintainer: Matt C <matt[at]tar[dot]black>
# Maintainer: Michal S <michal[at]tar[dot]black>
# Developer: Michal S <michal[at]tar[dot]black>
pkgname=malachite
pkgver=2.1.0
pkgrel=1
3 years ago
pkgdesc="Tool for packaging and maintaining pacman repositories"
arch=('x86_64')
url="https://github.com/crystal-linux/malachite"
license=('GPL3')
source=("git+$url")
3 years ago
sha256sums=('SKIP')
depends=('git' 'pacman-contrib' 'gnupg')
3 years ago
makedepends=('cargo')
prepare() {
cd "$srcdir/$pkgname"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
3 years ago
build() {
cd "$srcdir/$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
3 years ago
}
3 years ago
package() {
cd "$srcdir/$pkgname"
find target/release \
-maxdepth 1 \
-executable \
-type f \
-exec install -Dm0755 -t "${pkgdir}/usr/bin" {} +
}