summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f9c0dafc168aa73968a4052e83089a5d1606df2 (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
48
49
50
51
52
53
54
55
56
# Maintainer: Aaron DeVore <aaron.devore@gmail.com>
# Co-maintainer: Dan Beste <dan.ray.beste@gmail.com>

pkgname=dybuk-git
_pkgname=dybuk
pkgver=r37.ef12906
pkgrel=1
pkgdesc='Prettify the ugly Rustc messages'
arch=(
    'i686'
    'x86_64'
)
url='https://github.com/Ticki/dybuk'
license=(
    'MIT'
)
depends=(
    'gcc-libs'
)
makedepends=(
    'cargo'
    'git'
    'rust'
)
provides=(
    'dybuk'
)
conflicts=(
    'dybuk'
)
source=(
    'git+https://github.com/Ticki/dybuk.git'
)
sha256sums=(
    'SKIP'
)

pkgver() {
	cd "${srcdir}/${_pkgname}" | exit 1
	printf "r%s.%s"                     \
        "$(git rev-list --count HEAD)"	\
        "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_pkgname}" | exit 1
	cargo build --release
}

package() {
	cd "${srcdir}/${_pkgname}" | exit 1
    install -m755 \
        -D "target/release/dybuk" "${pkgdir}/usr/bin/${_pkgname}"
    install	-m644 \
        -D "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}