blob: 9c0a1e493187763dabdc34c8f0a9c685c8eae854 (
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
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Aziz Ben Ali <ba.tahaaziz@gmail.com>
# Package Maintainer: Federico "EvilScript" Torrielli <evilscript@protonmail.com>
pkgname=paspio-git
_pkgname=paspio
pkgver=1.0.0.f24017c
pkgrel=1
pkgdesc="A password entropy calculator and library."
arch=('x86_64')
url="https://git.sr.ht/~grtcdr/paspio"
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('rust' 'cargo' 'git')
source=("$pkgname::git+${url}")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
echo "$(grep ^version Cargo.toml | cut -d= -f2 | tr -d ' "').$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
}
build() {
cd "$pkgname"
cargo build --release
}
package() {
cd "$pkgname"
targetdir=${CARGO_TARGET_DIR:-target}
install -Dm755 "$targetdir/release/paspio" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|