blob: e7c44eca927dd6da055f842e4c8b07c22a7d9154 (
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
|
# Maintainer: Saumit Dinesan <justsaumit@protonmail.com>
_realname=license-generator
pkgname=gen-license
pkgver=0.1.2
pkgrel=3
pkgdesc="Create licenses for your projects right from your terminal!"
arch=('x86_64')
url="https://github.com/nexxeln/license-generator"
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate"
'LICENSE')
md5sums=('b227d2e73609cb388657dc9df9ac8d31'
'SKIP')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$pkgname-$pkgver"
cargo build --frozen --release --all-features
}
check() {
cd "$pkgname-$pkgver"
cargo test --frozen --all-features
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/gen-license" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|