summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 616f9f261353ed45c2d1151413f0d4d396073ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Estela ad Astra <i at estela dot cn>

pkgname=sm3sum
pkgver=0.1
pkgrel=1
pkgdesc="SM3 hash checksum."
arch=('i686' 'x86_64' 'aarch64' 'riscv64')
url="https://github.com/saeziae/sm3sum"
license=('MIT')
makedepends=('rust')
source=("https://github.com/saeziae/sm3sum/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('c52536c72ac2a0363a8d4cb9789288b5eaedb80fc3fc0110418695c0d7a3fcb6')
_srcname=$pkgname-$pkgver

build() {
    cd ${_srcname}
    cargo build --release
}

package() {
    install -Dm755 "${srcdir}/${_srcname}/target/release/sm3sum" "${pkgdir}/usr/bin/sm3sum"
}