Initial packaging.
This commit is contained in:
commit
0795fb8922
2 changed files with 43 additions and 0 deletions
14
.SRCINFO
Normal file
14
.SRCINFO
Normal file
|
@ -0,0 +1,14 @@
|
|||
pkgbase = cargo-license
|
||||
pkgdesc = Cargo subcommand to see license of dependencies
|
||||
pkgver = 0.3.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/onur/cargo-license
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = cargo
|
||||
depends = gcc-libs
|
||||
source = cargo-license-0.3.0.tar.gz::https://github.com/onur/cargo-license/archive/v0.3.0.tar.gz
|
||||
sha256sums = 50edb76242a93604386deb87f730d08538f893a571cd1ae6a3f53dd203c7bfae
|
||||
|
||||
pkgname = cargo-license
|
||||
|
29
PKGBUILD
Normal file
29
PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
||||
pkgname=cargo-license
|
||||
pkgver=0.3.0
|
||||
pkgrel=1
|
||||
pkgdesc="Cargo subcommand to see license of dependencies"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/onur/cargo-license"
|
||||
license=('MIT')
|
||||
depends=(gcc-libs)
|
||||
makedepends=(cargo)
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/onur/cargo-license/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('50edb76242a93604386deb87f730d08538f893a571cd1ae6a3f53dd203c7bfae')
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname-$pkgver"
|
||||
# Test in release mode to avoid recompiling everything
|
||||
cargo test --release
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
install -D -t "$pkgdir/usr/bin" target/release/cargo-license
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
}
|
Loading…
Reference in a new issue