diff options
author | Orhun Parmaksız | 2021-10-01 15:46:34 +0300 |
---|---|---|
committer | Orhun Parmaksız | 2021-10-01 15:46:34 +0300 |
commit | 52c00834d0f7ff4ba164088382d4bb5477f5c1d0 (patch) | |
tree | 75c0d457a79b35cd7309fb686196f1b3de29156f | |
download | aur-52c00834d0f7ff4ba164088382d4bb5477f5c1d0.tar.gz |
Initial upload: cargo-about 0.3.0-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..29a5feff8f1b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = cargo-about + pkgdesc = Cargo plugin to generate list of all licenses for a crate + pkgver = 0.3.0 + pkgrel = 1 + url = https://github.com/EmbarkStudios/cargo-about + arch = x86_64 + license = Apache + license = MIT + makedepends = rust + depends = gcc-libs + source = cargo-about-0.3.0.tar.gz::https://github.com/EmbarkStudios/cargo-about/archive/0.3.0.tar.gz + sha256sums = 01c5c78e4486b6de5694c0f140cab4b0f6efb807736a64602636a2266e2f015b + +pkgname = cargo-about diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d5ba57a8ad9d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: orhun <orhunparmaksiz@gmail.com> +# https://github.com/orhun/pkgbuilds + +pkgname=cargo-about +pkgver=0.3.0 +pkgrel=1 +pkgdesc="Cargo plugin to generate list of all licenses for a crate" +arch=('x86_64') +url="https://github.com/EmbarkStudios/cargo-about" +license=('Apache' 'MIT') +depends=('gcc-libs') +makedepends=('rust') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('01c5c78e4486b6de5694c0f140cab4b0f6efb807736a64602636a2266e2f015b') + +prepare() { + cd "$pkgname-$pkgver" + cargo fetch --locked +} + +build() { + cd "$pkgname-$pkgver" + cargo build --release --frozen +} + +check() { + cd "$pkgname-$pkgver" + cargo test --locked +} + +package() { + cd "$pkgname-$pkgver" + install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname" +} |