summaryrefslogtreecommitdiff
path: root/cargo-c/Pkgfile
blob: bad64d726b33cd7cea1a0b0e4ee5d266fdb252be (plain)
    1 # Description: A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries
    2 # URL: https://github.com/lu-zero/cargo-c/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust
    5 
    6 name=cargo-c
    7 version=0.9.15
    8 release=1
    9 source=(https://github.com/lu-zero/cargo-c/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   13   [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
   14 
   15   export CFLAGS+=' -ffat-lto-objects'
   16   cargo build --release --manifest-path $name-$version/Cargo.toml
   17 
   18   cargo install --offline --no-track --path $name-$version --root $PKG/usr
   19 }

Generated by cgit