diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 10 insertions, 11 deletions
@@ -1,16 +1,16 @@ pkgbase = shd-git pkgdesc = Console tool to display drive list with commonly checked smart info - git version - pkgver = 0.1.3.r2.g8c68335 + pkgver = 0.1.4.r6.g7c05853 pkgrel = 1 url = https://github.com/alttch/shd arch = x86_64 arch = i686 - arch = arm + arch = armv7h arch = aarch64 license = MIT makedepends = cargo makedepends = git - depends = smartmontools + depends = smartmontools>=7.0 provides = shd conflicts = shd source = shd-git::git+https://github.com/alttch/shd @@ -1,13 +1,13 @@ # Maintainer: Daniel Peukert <daniel@peukert.cc> _pkgname='shd' pkgname="$_pkgname-git" -pkgver='0.1.3.r2.g8c68335' +pkgver='0.1.4.r6.g7c05853' pkgrel='1' pkgdesc='Console tool to display drive list with commonly checked smart info - git version' -arch=('x86_64' 'i686' 'arm' 'aarch64') +arch=('x86_64' 'i686' 'armv7h' 'aarch64') url="https://github.com/alttch/$_pkgname" license=('MIT') -depends=('smartmontools') +depends=('smartmontools>=7.0') makedepends=('cargo' 'git') provides=("$_pkgname") conflicts=("$_pkgname") @@ -22,11 +22,10 @@ prepare() { # Prepare correct target for our architecture _cargotarget="$CARCH-unknown-linux-musl" - if [ "$CARCH" = 'arm' ]; then - _cargotarget="${_cargotarget}eabihf" + if [ "$CARCH" = 'armv7h' ]; then + _cargotarget='armv7-unknown-linux-musleabihf' fi - cargo update cargo fetch --locked --target "$_cargotarget" } @@ -38,12 +37,12 @@ pkgver() { build() { cd "$srcdir/$_sourcedirectory/" export RUSTUP_TOOLCHAIN='stable' - export CARGO_TARGET_DIR='build' + export CARGO_TARGET_DIR='target' cargo build --frozen --release --all-features } package() { cd "$srcdir/$_sourcedirectory/" - install -Dm755 "build/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" + install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" install -Dm644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |