blob: d2af3bd7748eec61a6b40f9236b504701ac70939 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Maintainer: Andreas Kurth <archlinux@akurth.net>
pkgname='bender'
pkgver=0.27.1
pkgrel=1
pkgdesc="Dependency management tool for hardware design projects"
arch=('x86_64')
url="https://github.com/pulp-platform/${pkgname}"
license=('Apache' 'MIT')
depends=('gcc-libs')
makedepends=('rust')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha512sums=('3e00045a3462ac680c019e2b44bb663dd9c155b09f3d7b39a40fe8586cc676477e08278556430aa3f788756835c53391160d01545d6a87ff22af3cd9ec1b436f')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
cargo build --release --locked --all-features --target-dir=target
}
check() {
cd "$srcdir/${pkgname}-${pkgver}"
cargo test --release --locked --target-dir=target
tests/run_all.sh
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|