Date: Thursday, July 29, 2021 @ 13:18:58 Author: heftig Revision: 420676
archrelease: copy trunk to extra-x86_64 Added: cbindgen/repos/extra-x86_64/PKGBUILD (from rev 420675, cbindgen/trunk/PKGBUILD) Deleted: cbindgen/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 83 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 42 insertions(+), 41 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-07-29 13:18:24 UTC (rev 420675) +++ PKGBUILD 2021-07-29 13:18:58 UTC (rev 420676) @@ -1,41 +0,0 @@ -# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> - -pkgname=cbindgen -pkgver=0.19.0 -pkgrel=1 -pkgdesc="A tool for generating C bindings to Rust code" -url="https://github.com/eqrion/cbindgen" -arch=(x86_64) -license=(MPL2) -depends=(gcc-libs) -makedepends=(cargo git) -_commit=d9e490ce8b836194595bd30611253a7028059da2 # tags/v0.19.0^0 -source=("git+https://github.com/eqrion/cbindgen#commit=$_commit") -sha512sums=('SKIP') - -pkgver() { - cd $pkgname - git describe --tags | sed 's/^v//;s/-/+/g' -} - -prepare() { - cd $pkgname - cargo fetch --locked --target x86_64-unknown-linux-gnu -} - -build() { - cd $pkgname - cargo build --release --frozen --all-targets -} - -check() { - cd $pkgname - # test_expand* fails; needs nightly rust - cargo test --release --frozen || : -} - -package() { - cd $pkgname - install -Dt "$pkgdir/usr/bin" target/release/cbindgen - install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md -} Copied: cbindgen/repos/extra-x86_64/PKGBUILD (from rev 420675, cbindgen/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-07-29 13:18:58 UTC (rev 420676) @@ -0,0 +1,42 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> + +pkgname=cbindgen +pkgver=0.20.0 +pkgrel=1 +pkgdesc="A tool for generating C bindings to Rust code" +url="https://github.com/eqrion/cbindgen" +arch=(x86_64) +license=(MPL2) +depends=(gcc-libs) +makedepends=(cargo git) +checkdepends=(cython) +_commit=41506d5aeb2be8d200f52d08afb0c243414eb00d # tags/v0.20.0^0 +source=("git+https://github.com/eqrion/cbindgen#commit=$_commit") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/^v//;s/-/+/g' +} + +prepare() { + cd $pkgname + cargo fetch --locked --target x86_64-unknown-linux-gnu +} + +build() { + cd $pkgname + cargo build --release --frozen --all-targets +} + +check() { + cd $pkgname + # Tests need nightly features + RUSTC_BOOTSTRAP=1 cargo test --release --frozen +} + +package() { + cd $pkgname + install -Dt "$pkgdir/usr/bin" target/release/cbindgen + install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md +}