blob: a17b486d01371fd8bf66b405e963f4176d2184b7 (
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
|
# Maintainer: Damian Poddebniak <poddebniak at fh-muenster dot de>
pkgname=xim-git
pkgver=r44.4afc7ff
pkgrel=1
pkgdesc="Vim-like hex editor."
arch=('x86_64' 'i686' )
url="https://github.com/FHMS-ITS/Xim"
license=('AGPLv3')
makedepends=('git' 'rust' 'cargo')
provides=('xim')
source=('git+https://github.com/FHMS-ITS/Xim')
md5sums=('SKIP')
build() {
cd "$srcdir/Xim"
cargo build --release --locked --all-features
}
check() {
cd "$srcdir/Xim"
cargo test --release --locked
}
package() {
cd "$srcdir/Xim"
install -Dm 755 target/release/xim -t "${pkgdir}/usr/bin"
}
pkgver() {
cd "$srcdir/Xim"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# vim:set ts=2 sw=2 et:
|