summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquininer2019-06-02 23:03:41 +0800
committerquininer2019-06-02 23:03:41 +0800
commitd378c96337684e8d18502391b718d0f7b9a6149c (patch)
tree3b1944070e436163e156934d8bde2b1c35850105
downloadaur-d378c96337684e8d18502391b718d0f7b9a6149c.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD29
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8dca9f2407d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = pix-image-viewer-git
+ pkgdesc = Desktop image viewer. View thousands of images in a zoomable, pannable grid.
+ pkgver = 0.1.0.6.gce1d4c5
+ pkgrel = 1
+ url = https://github.com/google/pix-image-viewer
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ makedepends = clang
+ provides = pix-image-viewer
+ conflicts = pix-image-viewer
+ source = pix-image-viewer-git::git+https://github.com/google/pix-image-viewer
+ sha256sums = SKIP
+
+pkgname = pix-image-viewer-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..28ffb2ea3b5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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=('MIT')
+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"
+}