summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65b4dde9c1ee561e563cef4c07d0698a5121a99a (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
pkgname=pix-image-viewer-git
pkgver=0.1.0.6.gce1d4c5
pkgrel=1
pkgdesc="Desktop image viewer. View thousands of images in a zoomable, pannable grid."
arch=('x86_64' 'i686')
url="https://github.com/google/pix-image-viewer"
license=('Apache-2.0')
depends=()
makedepends=('cargo' 'git' 'clang')
optdepends=()
provides=('pix-image-viewer')
conflicts=('pix-image-viewer')
source=($pkgname::git+https://github.com/google/pix-image-viewer)
sha256sums=('SKIP')

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

build() {
	cd $pkgname
	cargo build --release
}

package() {
	cd $pkgname
	install -D -m755 "$srcdir/$pkgname/target/release/pix" "$pkgdir/usr/bin/pix-image-viewer"
}