Skip to content

Commit

Permalink
Prepare a v0.1.0 (no alpha)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickray committed Jan 7, 2022
1 parent 6ce1a3b commit 31089e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lpc55

#### Installation

`cargo install --locked --version 0.1.0-alpha.8 lpc55`
`cargo install --locked`

Examples:

Expand Down
11 changes: 5 additions & 6 deletions pkg/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
pkgname=lpc55
pkgver=0.1.0_alpha.6
_pkgver=0.1.0-alpha.6
pkgver=0.1.0
pkgrel=1
pkgdesc='NXP LPC55 host-side utilities'
arch=('x86_64')
Expand All @@ -12,7 +11,7 @@ depends=(systemd-libs)
# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi
makedepends=(cargo git systemd)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/lpc55/lpc55-host/archive/refs/tags/${_pkgver}.tar.gz"
"$pkgname-$pkgver.tar.gz::https://github.com/lpc55/lpc55-host/archive/refs/tags/${pkgver}.tar.gz"
"70-raw-lpc55-mcuboot.rules"
)
sha256sums=(
Expand All @@ -21,20 +20,20 @@ sha256sums=(
)

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

check() {
cd "${pkgname}-host-${_pkgver}"
cd "${pkgname}-host-${pkgver}"
# make sure shared libs work
target/release/lpc55 --version
# Currently, tests assume a device is accessible
# cargo test --release
}

package() {
pkgnamefull="${pkgname}-host-${_pkgver}"
pkgnamefull="${pkgname}-host-${pkgver}"
install -Dm755 "$pkgnamefull/target/release/lpc55" "$pkgdir/usr/bin/lpc55"
install -Dm644 "$pkgnamefull/LICENSE-MIT" "$pkgdir/usr/share/licenses/$pkgnamefull/LICENSE-MIT"

Expand Down

0 comments on commit 31089e0

Please sign in to comment.