blob: a662a3ac3449ca54785462bdfb119e551a110d2a (
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
41
42
43
44
45
46
47
|
# Maintainer: Ensar Sarajčić <es.enar at gmail dot com>
#
pkgname="fbihtax-git"
_pkgname="fbihtax"
pkgver="0.3.0"
pkgrel=1
epoch=
pkgdesc="CLI tool to help manage tax payments in FBiH (Bosnia and Herzegovina Federation) written in Rust."
arch=('any')
url="https://github.com/esensar/fbihtax"
license=('MIT')
groups=()
depends=()
makedepends=('cargo')
checkdepends=()
optdepends=("pdftk: PDF output support")
provides=('fbihtax')
conflicts=('fbihtax')
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
sha256sums=(SKIP)
validpgpkeys=()
build() {
cd "$srcdir/$_pkgname"
cargo build --release --target-dir target
}
package() {
cd "$srcdir/$_pkgname"
install -Dm775 "target/release/fbihtax" "$pkgdir/usr/bin/fbihtax"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/fbihtax/LICENSE"
}
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
# vim:set ts=4 sw=2 ft=sh et syn=sh ft=sh:
|