summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23ab5a06b34afa36d0699766147e34e7e275c51c (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
# Maintainer: Richard Bradfield <bradfier at fstab dot me>

pkgname=xd-rs
pkgver=0.0.4
pkgrel=1
pkgdesc="xd - A tool to dump binary input in a variety of formats"
url="https://bitbucket.org/delan/xd"
depends=("gcc-libs")
makedepends=("cargo" "git")
provides=("xd")
arch=("i686" "x86_64")
license=("ISC")
source=("git+https://bitbucket.org/delan/xd.git#tag=$pkgver")
sha512sums=("SKIP")

build() {
    cd xd
    cargo build --release --target-dir "./target"
}

check() {
    cd xd
    cargo test --release --target-dir "./target"
}

package() {
    cd xd
    install -Dm755 "target/release/xd" "$pkgdir/usr/bin/xd"
    install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/xd-rs/LICENSE.txt"
}