aboutsummaryrefslogtreecommitdiffstats
path: root/cbindgen/PKGBUILD
blob: 7c9101570833786188c5bec33ab477a788ca963f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#Maintainer: Zee Eichel  <zee@dracos-linux.org>

pkgname=cbindgen
pkgver=0.8.0
pkgrel=1
pkgdesc="Cbindgen can be used to generate C bindings for Rust code."
arch=('x86_64')
url="https://github.com/eqrion/cbindgen/"
license=('BSD')
depends=('rustc')
source=("https://github.com/eqrion/cbindgen/archive/v0.8.0/cbindgen-0.8.0.tar.gz")
sha256sums=('3a83c8981d195ea8c72cbcd65713fc909c64c613554d3aa52733d3f32b9b244d')

build() {
  cd "$pkgname"-"$pkgver"
  cargo build --release
}

package() {
  cd "$pkgname"-"$pkgver"
  install -d $pkgdir/usr/bin/
  install -Dm755 target/release/cbindgen $pkgdir/usr/bin/
}