blob: d8cc486775121bfe4671ad569f3486d7d331f3bd (
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
|
# Maintainer: Jan van den Berg <arch at koozz dot nl>
pkgname='mgit'
pkgdesc='Run git on multiple projects.'
pkgver=0.1.10
pkgrel=1
arch=('x86_64')
url='https://crates.io/crates/mgit'
license=('MIT')
depends=('git')
makedepends=('rust')
checkdepends=('rust' 'git')
provides=(mgit)
source=("$pkgname-$pkgver.tar.gz::https://github.com/koozz/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('8007e08059c9c97e07078beb59d3e37635b06b6a14cbecf7c237ea7f8f087681')
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
check() {
cd "$pkgname-$pkgver"
cargo test --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|