summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--.index.json4
-rw-r--r--PKGBUILD29
3 files changed, 20 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4883843472b..145de78b684 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = cargo-readme
pkgdesc = A cargo subcommand to generate README.md content from doc comments
pkgver = 3.2.0
- pkgrel = 3
+ pkgrel = 4
url = https://crates.io/crates/cargo-readme
+ arch = aarch64
+ arch = i686
arch = x86_64
license = Apache
license = MIT
makedepends = cargo
depends = gcc-libs
- source = cargo-readme.tar.gz::https://crates.io/api/v1/crates/cargo-readme/3.2.0/download
+ source = cargo-readme-3.2.0.tar.gz::https://crates.io/api/v1/crates/cargo-readme/3.2.0/download
sha512sums = 49fdfcde0913e330e4f79e56d41ff675e2a1b0d0e11b09d8b3db348e11fabe9024ec71eeef72465113e92aa49324b6d5ab5e7607e196d35730d4fe059feeb5e9
pkgname = cargo-readme
-
diff --git a/.index.json b/.index.json
new file mode 100644
index 00000000000..c83a8a79e33
--- /dev/null
+++ b/.index.json
@@ -0,0 +1,4 @@
+{
+ "crate": "cargo-readme",
+ "version": "3.2.0"
+} \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 49e5369f166..0ee1f6daf6a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,36 +2,31 @@
# Maintainer: Dominic Meiser [git at msrd0 dot de]
# Package Information
-pkgname=cargo-readme
+_crate="cargo-readme"
+pkgname="$_crate"
pkgver=3.2.0
-pkgrel=3
+pkgrel=4
pkgdesc='A cargo subcommand to generate README.md content from doc comments'
-arch=('x86_64')
license=('Apache' 'MIT')
+# Tier 1 architectures supported by Rust (https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1)
+arch=('aarch64' 'i686' 'x86_64')
+
# Generic Stuff for cargo packages
-url="https://crates.io/crates/$pkgname"
+url="https://crates.io/crates/$_crate"
depends=('gcc-libs')
makedepends=('cargo')
-source=("$pkgname.tar.gz::https://crates.io/api/v1/crates/$pkgname/$pkgver/download")
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_crate/$pkgver/download")
sha512sums=('49fdfcde0913e330e4f79e56d41ff675e2a1b0d0e11b09d8b3db348e11fabe9024ec71eeef72465113e92aa49324b6d5ab5e7607e196d35730d4fe059feeb5e9')
build() {
cd "$srcdir/$pkgname-$pkgver"
-
- # crates.io packages aren't supposed to contain a Cargo.lock file so
- # don't use --locked flag
- cargo build --release
+ cargo build \
+ --locked \
+ --release
}
package() {
cd "$srcdir/$pkgname-$pkgver"
-
- # change this if the crate has other binaries as well!
- install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
-
- # install whatever license files the distribution included
- for file in $(ls | grep -i -e license -e copying -e copyring); do
- install -Dm644 "$file" -t "$pkgdir/usr/share/licenses/$pkgname"
- done
+ install -Dm755 "target/release/cargo-readme" -t "$pkgdir/usr/bin"
}