summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9994d9d05133beaac5c982276a85d5f494ada9b0 (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
# Maintainer: Wojciech Kepka <wojciech@wkepka.dev>
pkgname=dockeye-git
_pkgname=dockeye
pkgver=0.1.0.54.g4bfd0e9
pkgrel=1
epoch=
pkgdesc="GUI app to manage Docker"
arch=('x86_64')
url="https://github.com/vv9k/dockeye"
license=('GPLv3')
depends=('libxcb' 'gcc-libs')
makedepends=('cargo')
provides=('dockeye')
conflicts=('dockeye')
source=("${_pkgname}::git+https://github.com/vv9k/dockeye.git")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"
    cargo build --locked --release --all-features
}

check() {
	cd "$_pkgname"
    cargo test --release --all-features
}

package() {
	cd "$_pkgname"
    install -Dm755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/dockeye"
    install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}