blob: 8996c390ecb239e0680fde56beb02ae3f60c27b8 (
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
|
# Maintainer: Tryton Van Meer <trytonvanmeer at protonmail dot com>
pkgname='hiritsu'
_reponame='Hiritsu'
pkgdesc='CLI tool for getting aspect ratio of files.'
pkgver='1.0.0'
pkgrel='1'
arch=('x86_64')
url='https://github.com/tryton-vanmeer/Hiritsu'
license=('GPL3')
depends=('gcc-libs')
makedepends=('rust' 'gcc')
checkdepends=('rust' 'git')
provides=(hiritsu)
source=("$pkgname-$pkgver.tar.gz::https://github.com/tryton-vanmeer/Hiritsu/archive/v${pkgver}.tar.gz")
sha256sums=('786308efb66d1dc885aa9e7979fd51b955c16c1ae9956bd69a29095fc53ea6a9')
build() {
cd "$_reponame-$pkgver"
cargo build --release --locked
}
check() {
cd "$_reponame-$pkgver"
cargo test --locked
}
package() {
cd "$_reponame-$pkgver"
install -Dm755 "target/release/hiritsu" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|