diff options
author | Sanpi | 2020-12-01 15:32:18 +0100 |
---|---|---|
committer | Sanpi | 2020-12-01 15:32:18 +0100 |
commit | 98fe4ad14b7e1dfa9ae2114898da620687689d85 (patch) | |
tree | 0f967848f93e13fc9e70a408c047376b1af53b99 | |
download | aur-98fe4ad14b7e1dfa9ae2114898da620687689d85.tar.gz |
v0.1.0
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c7847d6d3d86 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = cargo-brief + pkgdesc = Display a brief summary of cargo dependencies. + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/sanpii/cargo-brief + arch = x86_64 + license = MIT + depends = cargo + source = 0.1.0.tar.gz::https://crates.io/api/v1/crates/cargo-brief/0.1.0/download + +pkgname = cargo-brief + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1295580f1017 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/*.pkg.tar.* +/*.tar.gz +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1be520fe29e8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Sanpi <sanpi+aur@homecomputing.fr> +pkgname=cargo-brief +pkgver=0.1.0 +pkgrel=1 +pkgdesc="Display a brief summary of cargo dependencies." +url="https://github.com/sanpii/$pkgname" +arch=("x86_64") +license=("MIT") +depends=("cargo") +source=("$pkgver.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download") +sha256sums=('1d8850f4018f3be245474b0197f627262dfdce69c1c012ca76abf2364599cc6e') + +build() +{ + cd "$srcdir/$pkgname-$pkgver" + + cargo build --release +} + +package() +{ + cd "$srcdir/$pkgname-$pkgver" + + install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |