blob: aca1b0ef1a69765b1ba1aedd10a4f93bcad9b3ca (
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
|
# Maintainer: Atnanasi <ys2000pro@gmail.com>
pkgname=mkrepo
pkgver=0.1.3
pkgrel=1
pkgdesc='Create repo directory for ghq style'
arch=('i686' 'x86_64')
url='https://github.com/himanoa/mkrepo'
license=('MIT')
depends=('git')
makedepends=('rust')
optdepends=('ghq')
source=("https://github.com/himanoa/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('ca8c519e3dd1104da2d87402ea171c27')
install=$pkgname.install
build() {
cd "$pkgname-$pkgver"
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
cargo install --root "${pkgdir}/usr" --path '.'
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# cargo make .crates.toml. At this time, cargo cannot provides --no-metadata option.
rm "${pkgdir}/usr/.crates.toml"
}
|